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) 21 22if(EIGEN_TEST_SYCL) 23 add_subdirectory(SYCL) 24endif(EIGEN_TEST_SYCL) 25