diff options
| author | Marius Kintel <marius@kintel.net> | 2013-01-30 02:04:41 (GMT) | 
|---|---|---|
| committer | Marius Kintel <marius@kintel.net> | 2013-01-30 02:04:41 (GMT) | 
| commit | 961dd79d9d920e011d5381d199abfc9638fd437e (patch) | |
| tree | a2f4e771b4821400e8cc00689247b41b0ff0348c /tests | |
| parent | cd9ed9bc9e0fdd43f9f7f1e77ac7b6ae76eaea4a (diff) | |
Use file(COPY) instead of configure_file(). Port to Mac
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/CMakeLists.txt | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d5eb44e..0375700 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -674,11 +674,6 @@ set(CTEST_CUSTOM_TXT "\n  ")  file(WRITE ${CTEST_CUSTOM_FILE} ${CTEST_CUSTOM_TXT}) -foreach(FILE test_pretty_print.py) -  configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${FILE} -                 ${CMAKE_CURRENT_BINARY_DIR}/${FILE} COPYONLY) -endforeach() -  set_directory_properties(PROPERTIES TEST_INCLUDE_FILE "${CMAKE_SOURCE_DIR}/EnforceConfig.cmake")  # Subst files @@ -798,10 +793,15 @@ endforeach()  # GUI test  message(STATUS "copying openscad GUI binary...") -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/guicgalpngtest -               ${CMAKE_CURRENT_BINARY_DIR}/guicgalpngtest COPYONLY) -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../openscad -               ${CMAKE_CURRENT_BINARY_DIR}/openscad COPYONLY) +file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/guicgalpngtest +     DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) +IF (APPLE) +  file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../OpenSCAD.app +       DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) +ELSE() +  file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../openscad +       DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) +ENDIF()  # Add tests | 
