title: Generate ELF file CMake
body: <p>I want to generate a stream.elf file using CMake. I can output an executable but can't make the elf format of my project.</p>
  
  <p>My CMakeLists.txt is the next one</p>
  
  <pre><code>cmake_minimum_required(VERSION 2.8)
  project( Stream )
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w -fpermissive -o Stream-bin")
  find_package( OpenCV REQUIRED )
  aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/shareFile/xilinx src_xilinx)
  add_executable( Stream ${src_xilinx} stream.cpp shareFile/linuxmmap.cpp )
  target_include_directories( Stream PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/shareFile ${CMAKE_CURRENT_SOURCE_DIR}/shareFile/xilinx)
  target_link_libraries( Stream ${OpenCV_LIBS} )
  </code></pre>
  
  <p>I've been searching through the web and I've found that using the </p>
  
  <pre><code> gcc -Wall -g hello-world.c -o hello-world-bin
  </code></pre>
  
  <p>command, an elf output is generated, however, didn't find how to do the same with my CMakeLists.txt</p>
  
  <p>Thanks!</p>