From 4909154387581ed82544b3407e087f7d7221ca55 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 10 Mar 2006 10:12:26 -0500 Subject: [PATCH] ENH: Add package to bundle test --- Source/CMakeLists.txt | 1 + Tests/BundleTest/CMakeLists.txt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index d0c8041d7..737b0cd0c 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -950,6 +950,7 @@ IF(BUILD_TESTING) --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM} --build-project BundleTest --build-target install + --build-target package --build-options "-DCMAKE_INSTALL_PREFIX:PATH=${BundleTestInstallDir}" --test-command ${BundleTestInstallDir}/Application/BundleTestExe.app/Contents/MacOS/BundleTestExe) diff --git a/Tests/BundleTest/CMakeLists.txt b/Tests/BundleTest/CMakeLists.txt index 4bab24ef1..9e8cb2045 100644 --- a/Tests/BundleTest/CMakeLists.txt +++ b/Tests/BundleTest/CMakeLists.txt @@ -24,3 +24,6 @@ ENDIF(NOT XCODE) # Make sure the executable can find its installed library. SET_TARGET_PROPERTIES(BundleTestLib PROPERTIES INSTALL_NAME_DIR "@executable_path/../Plugins") + +INCLUDE(CPack) +