1 file(GLOB examples_SRCS "*.cpp")
3 foreach(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})
13 ARGS >${CMAKE_CURRENT_BINARY_DIR}/${example}.out
15 add_dependencies(all_examples ${example})
16 endforeach(example_src)
18 check_cxx_compiler_flag("-std=c++11" EIGEN_COMPILER_SUPPORT_CPP11)
19 if(EIGEN_COMPILER_SUPPORT_CPP11)
20 ei_add_target_property(nullary_indexing COMPILE_FLAGS "-std=c++11")