From 4bb5221d229703a906c6fe805b73fac2496c8bea Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 18 Mar 2009 20:06:06 +0000 Subject: Add BVH module in unsupported (patch from Ilya Baran) (I thought I committed it a week ago but it seems the command failed) --- unsupported/doc/examples/CMakeLists.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 unsupported/doc/examples/CMakeLists.txt (limited to 'unsupported/doc/examples/CMakeLists.txt') diff --git a/unsupported/doc/examples/CMakeLists.txt b/unsupported/doc/examples/CMakeLists.txt new file mode 100644 index 000000000..af4de4b0d --- /dev/null +++ b/unsupported/doc/examples/CMakeLists.txt @@ -0,0 +1,17 @@ +FILE(GLOB examples_SRCS "*.cpp") + +ADD_CUSTOM_TARGET(unsupported_examples) + +FOREACH(example_src ${examples_SRCS}) +GET_FILENAME_COMPONENT(example ${example_src} NAME_WE) +ADD_EXECUTABLE(${example} ${example_src}) +GET_TARGET_PROPERTY(example_executable + ${example} LOCATION) +ADD_CUSTOM_COMMAND( + TARGET ${example} + POST_BUILD + COMMAND ${example_executable} + ARGS >${CMAKE_CURRENT_BINARY_DIR}/${example}.out +) +ADD_DEPENDENCIES(unsupported_examples ${example}) +ENDFOREACH(example_src) -- cgit v1.2.3