summaryrefslogtreecommitdiffstats
path: root/Tests/ExportImport/Import/A
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-09-23 17:19:55 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-30 14:27:02 (GMT)
commit955b96629e05bf2ddb6c94fa7a130e2b5b744782 (patch)
tree4279d02e1feacb66739e028f7aeedabb136f5177 /Tests/ExportImport/Import/A
parent6f50a04cc1c4584472f850e06daad7ae20af45c4 (diff)
downloadCMake-955b96629e05bf2ddb6c94fa7a130e2b5b744782.zip
CMake-955b96629e05bf2ddb6c94fa7a130e2b5b744782.tar.gz
CMake-955b96629e05bf2ddb6c94fa7a130e2b5b744782.tar.bz2
exports: add a test for exporting dependent targets
The test exports two libraries into two separate exports, and then include()s the generated export files. This must not fail. Alex
Diffstat (limited to 'Tests/ExportImport/Import/A')
-rw-r--r--Tests/ExportImport/Import/A/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/ExportImport/Import/A/CMakeLists.txt b/Tests/ExportImport/Import/A/CMakeLists.txt
index 650af6a..8841792 100644
--- a/Tests/ExportImport/Import/A/CMakeLists.txt
+++ b/Tests/ExportImport/Import/A/CMakeLists.txt
@@ -4,6 +4,10 @@ include(${Import_BINARY_DIR}/../Export/ExportBuildTree.cmake)
# Import targets from the exported install tree.
include(${CMAKE_INSTALL_PREFIX}/lib/exp/exp.cmake)
+# Import two exports, where the Depends one depends on an exported target from the Required one:
+include(${CMAKE_INSTALL_PREFIX}/lib/cmake/testLibRequired/testLibRequiredConfig.cmake)
+include(${CMAKE_INSTALL_PREFIX}/lib/cmake/testLibDepends/testLibDependsConfig.cmake)
+
# Try referencing an executable imported from the install tree.
add_custom_command(
OUTPUT ${Import_BINARY_DIR}/exp_generated.c