diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-30 20:23:12 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-30 20:23:12 (GMT) |
commit | 56c0bbc83f079d0f3ff4487360a44271a6724778 (patch) | |
tree | 08c852094f0b68c7c4cc50c122ab87aea41bcfba /Tests | |
parent | 34e3ce9e4e6a6055df2a0102e0ef611fe2ac503e (diff) | |
download | CMake-56c0bbc83f079d0f3ff4487360a44271a6724778.zip CMake-56c0bbc83f079d0f3ff4487360a44271a6724778.tar.gz CMake-56c0bbc83f079d0f3ff4487360a44271a6724778.tar.bz2 |
STYLE: adapt the test to the change from FILENAME to FILE
-add a call to the EXPORT() command
Alex
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/SimpleInstall/CMakeLists.txt | 6 | ||||
-rw-r--r-- | Tests/SimpleInstallS2/CMakeLists.txt | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Tests/SimpleInstall/CMakeLists.txt b/Tests/SimpleInstall/CMakeLists.txt index 2ac42e0..1e4cde9 100644 --- a/Tests/SimpleInstall/CMakeLists.txt +++ b/Tests/SimpleInstall/CMakeLists.txt @@ -205,10 +205,14 @@ ELSE(STAGE2) scripts/sample_script scripts/sample_script.bat) # "export" the targets collected in "SimpleInstallS1" - INSTALL(EXPORT SimpleInstallS1 FILENAME SimpleInstallS1Config.cmake + INSTALL(EXPORT SimpleInstallS1 FILE SimpleInstallS1Config.cmake DESTINATION MyTest/lib PREFIX S1_ ) + EXPORT(TARGETS SimpleInstall test1 test2 test3 + FILE "${CMAKE_CURRENT_BINARY_DIR}/SimpleInstallS1Config.cmake" + PREFIX S2_ ) + ADD_SUBDIRECTORY(scripts) # Test optional installation. diff --git a/Tests/SimpleInstallS2/CMakeLists.txt b/Tests/SimpleInstallS2/CMakeLists.txt index 2ac42e0..1e4cde9 100644 --- a/Tests/SimpleInstallS2/CMakeLists.txt +++ b/Tests/SimpleInstallS2/CMakeLists.txt @@ -205,10 +205,14 @@ ELSE(STAGE2) scripts/sample_script scripts/sample_script.bat) # "export" the targets collected in "SimpleInstallS1" - INSTALL(EXPORT SimpleInstallS1 FILENAME SimpleInstallS1Config.cmake + INSTALL(EXPORT SimpleInstallS1 FILE SimpleInstallS1Config.cmake DESTINATION MyTest/lib PREFIX S1_ ) + EXPORT(TARGETS SimpleInstall test1 test2 test3 + FILE "${CMAKE_CURRENT_BINARY_DIR}/SimpleInstallS1Config.cmake" + PREFIX S2_ ) + ADD_SUBDIRECTORY(scripts) # Test optional installation. |