Skip to content

Commit

Permalink
use copy
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Mar 10, 2016
1 parent 4751b4f commit a69cd1c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/meta/CMakeLists.txt
Expand Up @@ -34,10 +34,11 @@ ENDIF(ENABLE_TESTING)

# If testing is enabled we run the examples
IF(ENABLE_TESTING)
# copy data symlink to cmake binary dir so that we can execute meta examples in there
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/data
${CMAKE_BINARY_DIR}/data)
IF (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/data)
# copy data symlink to cmake binary dir so that we can execute meta examples in there
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
ENDIF()


# c++
IF (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/cpp)
Expand Down

0 comments on commit a69cd1c

Please sign in to comment.