source: pacpussensors/trunk/Vislab/lib3dv/eigen/doc/examples/CMakeLists.txt@ 136

Last change on this file since 136 was 136, checked in by ldecherf, 7 years ago

Doc

File size: 509 bytes
Line 
1file(GLOB examples_SRCS "*.cpp")
2
3foreach(example_src ${examples_SRCS})
4 get_filename_component(example ${example_src} NAME_WE)
5 add_executable(${example} ${example_src})
6 if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
7 target_link_libraries(${example} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
8 endif()
9 add_custom_command(
10 TARGET ${example}
11 POST_BUILD
12 COMMAND ${example}
13 ARGS >${CMAKE_CURRENT_BINARY_DIR}/${example}.out
14 )
15 add_dependencies(all_examples ${example})
16endforeach(example_src)
Note: See TracBrowser for help on using the repository browser.