summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/EXPORT-TargetTwice.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/install/EXPORT-TargetTwice.cmake')
-rw-r--r--Tests/RunCMake/install/EXPORT-TargetTwice.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/EXPORT-TargetTwice.cmake b/Tests/RunCMake/install/EXPORT-TargetTwice.cmake
new file mode 100644
index 0000000..cac4ff2
--- /dev/null
+++ b/Tests/RunCMake/install/EXPORT-TargetTwice.cmake
@@ -0,0 +1,17 @@
+enable_language(C)
+
+add_library(foo STATIC empty.c)
+
+install(TARGETS foo
+ EXPORT pkg1
+ ARCHIVE DESTINATION pkg1/lib
+ INCLUDES DESTINATION pkg1/inc
+ )
+install(EXPORT pkg1 DESTINATION pkg1)
+
+install(TARGETS foo
+ EXPORT pkg2
+ ARCHIVE DESTINATION pkg2/lib
+ INCLUDES DESTINATION pkg2/inc
+ )
+install(EXPORT pkg2 DESTINATION pkg2)