Ticket #48231: patch-examples-CMakeLists.txt.diff
File patch-examples-CMakeLists.txt.diff, 638 bytes (added by Schamschula (Marius Schamschula), 9 years ago) |
---|
-
examples/CMakeLists.txt
old new 10 10 11 11 # copy all example files 12 12 add_custom_target(copy_examples) 13 foreach(example_file ${EXAMPLE_FILES}) 14 add_custom_command(TARGET copy_examples PRE_BUILD 13 add_custom_command(TARGET copy_examples PRE_BUILD 15 14 COMMAND ${CMAKE_COMMAND} -E 16 copy ${example_file} ${PROJECT_BINARY_DIR}/examples) 17 endforeach() 15 copy_directory . ${PROJECT_BINARY_DIR}/examples) 18 16 19 17 add_custom_target(examples 20 18 DEPENDS doxygen copy_examples