diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-03-08 13:13:48 -0500 |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-03-08 13:13:48 -0500 |
commit | cd62290147431c1c668934a3f33a625d53bb1512 (patch) | |
tree | a10e6917cd323b03cafd6f9648f486c5c1c2551d | |
parent | bde71e96682c95485190acd20090e53943d27c04 (diff) | |
download | cmake-cd62290147431c1c668934a3f33a625d53bb1512.tar.gz |
ENH: Add testing for cpack
-rw-r--r-- | Tests/SimpleInstall/CMakeLists.txt | 51 | ||||
-rw-r--r-- | Tests/SimpleInstallS2/CMakeLists.txt | 51 |
2 files changed, 70 insertions, 32 deletions
diff --git a/Tests/SimpleInstall/CMakeLists.txt b/Tests/SimpleInstall/CMakeLists.txt index 5d4ec98aca..1efd5f1627 100644 --- a/Tests/SimpleInstall/CMakeLists.txt +++ b/Tests/SimpleInstall/CMakeLists.txt @@ -145,19 +145,38 @@ ENDIF(WIN32 AND NOT UNIX) SET(CPACK_PACKAGE_EXECUTABLES "SimpleInstall" "Simple Install") INCLUDE(CPack) -ADD_CUSTOM_COMMAND( - TARGET ${install_target} - POST_BUILD - COMMAND ${CMAKE_CTEST_COMMAND} - ARGS ${SI_CONFIG} - --build-and-test - ${CMAKE_SOURCE_DIR} - ${CMAKE_BINARY_DIR} - --build-generator ${CMAKE_GENERATOR} - --build-project ${PROJECT_NAME} - --build-makeprogram ${CMAKE_MAKE_PROGRAM} - --build-noclean - --build-target install -# --build-target package - COMMENT "Install Project" - ) +IF(APPLE AND NOT CTEST_TEST_CPACK) + # Issue with packaging on the mac, so disable it for now + ADD_CUSTOM_COMMAND( + TARGET ${install_target} + POST_BUILD + COMMAND ${CMAKE_CTEST_COMMAND} + ARGS ${SI_CONFIG} + --build-and-test + ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + --build-generator ${CMAKE_GENERATOR} + --build-project ${PROJECT_NAME} + --build-makeprogram ${CMAKE_MAKE_PROGRAM} + --build-noclean + --build-target install + COMMENT "Install Project" + ) +ELSE(APPLE NOT CTEST_TEST_CPACK) + ADD_CUSTOM_COMMAND( + TARGET ${install_target} + POST_BUILD + COMMAND ${CMAKE_CTEST_COMMAND} + ARGS ${SI_CONFIG} + --build-and-test + ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + --build-generator ${CMAKE_GENERATOR} + --build-project ${PROJECT_NAME} + --build-makeprogram ${CMAKE_MAKE_PROGRAM} + --build-noclean + --build-target install + --build-target package + COMMENT "Install Project" + ) +ENDIF(APPLE NOT CTEST_TEST_CPACK) diff --git a/Tests/SimpleInstallS2/CMakeLists.txt b/Tests/SimpleInstallS2/CMakeLists.txt index 5d4ec98aca..1efd5f1627 100644 --- a/Tests/SimpleInstallS2/CMakeLists.txt +++ b/Tests/SimpleInstallS2/CMakeLists.txt @@ -145,19 +145,38 @@ ENDIF(WIN32 AND NOT UNIX) SET(CPACK_PACKAGE_EXECUTABLES "SimpleInstall" "Simple Install") INCLUDE(CPack) -ADD_CUSTOM_COMMAND( - TARGET ${install_target} - POST_BUILD - COMMAND ${CMAKE_CTEST_COMMAND} - ARGS ${SI_CONFIG} - --build-and-test - ${CMAKE_SOURCE_DIR} - ${CMAKE_BINARY_DIR} - --build-generator ${CMAKE_GENERATOR} - --build-project ${PROJECT_NAME} - --build-makeprogram ${CMAKE_MAKE_PROGRAM} - --build-noclean - --build-target install -# --build-target package - COMMENT "Install Project" - ) +IF(APPLE AND NOT CTEST_TEST_CPACK) + # Issue with packaging on the mac, so disable it for now + ADD_CUSTOM_COMMAND( + TARGET ${install_target} + POST_BUILD + COMMAND ${CMAKE_CTEST_COMMAND} + ARGS ${SI_CONFIG} + --build-and-test + ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + --build-generator ${CMAKE_GENERATOR} + --build-project ${PROJECT_NAME} + --build-makeprogram ${CMAKE_MAKE_PROGRAM} + --build-noclean + --build-target install + COMMENT "Install Project" + ) +ELSE(APPLE NOT CTEST_TEST_CPACK) + ADD_CUSTOM_COMMAND( + TARGET ${install_target} + POST_BUILD + COMMAND ${CMAKE_CTEST_COMMAND} + ARGS ${SI_CONFIG} + --build-and-test + ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + --build-generator ${CMAKE_GENERATOR} + --build-project ${PROJECT_NAME} + --build-makeprogram ${CMAKE_MAKE_PROGRAM} + --build-noclean + --build-target install + --build-target package + COMMENT "Install Project" + ) +ENDIF(APPLE NOT CTEST_TEST_CPACK) |