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  
    1010
    1111# copy all example files
    1212add_custom_target(copy_examples)
    13 foreach(example_file ${EXAMPLE_FILES})
    14   add_custom_command(TARGET copy_examples PRE_BUILD
     13add_custom_command(TARGET copy_examples PRE_BUILD
    1514                     COMMAND ${CMAKE_COMMAND} -E
    16                          copy ${example_file} ${PROJECT_BINARY_DIR}/examples)
    17 endforeach()
     15                         copy_directory . ${PROJECT_BINARY_DIR}/examples)
    1816
    1917add_custom_target(examples
    2018        DEPENDS doxygen copy_examples