summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Tests')
-rw-r--r--Tests/SimpleInstall/CMakeLists.txt11
-rw-r--r--Tests/SimpleInstallS2/CMakeLists.txt11
2 files changed, 22 insertions, 0 deletions
diff --git a/Tests/SimpleInstall/CMakeLists.txt b/Tests/SimpleInstall/CMakeLists.txt
index c70a0f8..3d30158 100644
--- a/Tests/SimpleInstall/CMakeLists.txt
+++ b/Tests/SimpleInstall/CMakeLists.txt
@@ -18,6 +18,17 @@ IF(STAGE2)
ADD_EXECUTABLE (SimpleInstallS2 inst.cxx foo.c foo.h)
TARGET_LINK_LIBRARIES(SimpleInstallS2 ${TEST1_LIBRARY} ${TEST2_LIBRARY})
+ ADD_CUSTOM_COMMAND(
+ TARGET SimpleInstallS2
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND}
+ ARGS ${EXTRA_INSTALL_FLAGS}
+ "-P${CMAKE_CURRENT_BINARY_DIR}/cmake_install.cmake"
+ COMMENT "Install Project"
+ )
+
+ INSTALL_TARGETS(/bin SimpleInstallS2)
+
ELSE(STAGE2)
# this is stage 1, so create libraries and modules and install everything
ADD_LIBRARY(test1 STATIC lib1.cxx)
diff --git a/Tests/SimpleInstallS2/CMakeLists.txt b/Tests/SimpleInstallS2/CMakeLists.txt
index c70a0f8..3d30158 100644
--- a/Tests/SimpleInstallS2/CMakeLists.txt
+++ b/Tests/SimpleInstallS2/CMakeLists.txt
@@ -18,6 +18,17 @@ IF(STAGE2)
ADD_EXECUTABLE (SimpleInstallS2 inst.cxx foo.c foo.h)
TARGET_LINK_LIBRARIES(SimpleInstallS2 ${TEST1_LIBRARY} ${TEST2_LIBRARY})
+ ADD_CUSTOM_COMMAND(
+ TARGET SimpleInstallS2
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND}
+ ARGS ${EXTRA_INSTALL_FLAGS}
+ "-P${CMAKE_CURRENT_BINARY_DIR}/cmake_install.cmake"
+ COMMENT "Install Project"
+ )
+
+ INSTALL_TARGETS(/bin SimpleInstallS2)
+
ELSE(STAGE2)
# this is stage 1, so create libraries and modules and install everything
ADD_LIBRARY(test1 STATIC lib1.cxx)