summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/alias_targets/install-export.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-08-06 13:07:21 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-08-06 13:07:21 (GMT)
commit87e0e6e497b76f4ab7292cca34bd7c006832723b (patch)
treeaca65d62aec61aae5e3394808d6c0cd264f3376f /Tests/RunCMake/alias_targets/install-export.cmake
parent0174133dfd1f46662bb517677d3bf0a765b11e3e (diff)
parent370bf554151a1b272baf62a0ce9823cf9995116e (diff)
downloadCMake-87e0e6e497b76f4ab7292cca34bd7c006832723b.zip
CMake-87e0e6e497b76f4ab7292cca34bd7c006832723b.tar.gz
CMake-87e0e6e497b76f4ab7292cca34bd7c006832723b.tar.bz2
Merge topic 'ALIAS-targets'
370bf55 Add the ALIAS target concept for libraries and executables.
Diffstat (limited to 'Tests/RunCMake/alias_targets/install-export.cmake')
-rw-r--r--Tests/RunCMake/alias_targets/install-export.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/alias_targets/install-export.cmake b/Tests/RunCMake/alias_targets/install-export.cmake
new file mode 100644
index 0000000..b1c6a4f
--- /dev/null
+++ b/Tests/RunCMake/alias_targets/install-export.cmake
@@ -0,0 +1,9 @@
+
+enable_language(CXX)
+
+add_library(foo empty.cpp)
+
+add_library(alias ALIAS foo)
+
+install(TARGETS alias EXPORT theTargets DESTINATION prefix)
+install(EXPORT theTargets DESTINATION lib/cmake)