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

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

Doc

File size: 667 bytes
Line 
1FILE(GLOB examples_SRCS "*.cpp")
2
3ADD_CUSTOM_TARGET(unsupported_examples)
4
5INCLUDE_DIRECTORIES(../../../unsupported ../../../unsupported/test)
6
7FOREACH(example_src ${examples_SRCS})
8 GET_FILENAME_COMPONENT(example ${example_src} NAME_WE)
9 ADD_EXECUTABLE(example_${example} ${example_src})
10 if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
11 target_link_libraries(example_${example} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
12 endif()
13 ADD_CUSTOM_COMMAND(
14 TARGET example_${example}
15 POST_BUILD
16 COMMAND example_${example}
17 ARGS >${CMAKE_CURRENT_BINARY_DIR}/${example}.out
18 )
19 ADD_DEPENDENCIES(unsupported_examples example_${example})
20ENDFOREACH(example_src)
Note: See TracBrowser for help on using the repository browser.