summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/TARGETS-Parts.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2018-07-12 14:41:04 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2018-07-17 13:07:01 (GMT)
commitb5df4faa203bfac4bee9924520015f76f9692676 (patch)
treea461487c229bd10e496a7ef07ba142cd45faf778 /Tests/RunCMake/install/TARGETS-Parts.cmake
parent4108ab4be2307ef161467de46e4c35e8b086ce02 (diff)
downloadCMake-b5df4faa203bfac4bee9924520015f76f9692676.zip
CMake-b5df4faa203bfac4bee9924520015f76f9692676.tar.gz
CMake-b5df4faa203bfac4bee9924520015f76f9692676.tar.bz2
Tests: Add test for installing parts of targets in different directories
Diffstat (limited to 'Tests/RunCMake/install/TARGETS-Parts.cmake')
-rw-r--r--Tests/RunCMake/install/TARGETS-Parts.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/TARGETS-Parts.cmake b/Tests/RunCMake/install/TARGETS-Parts.cmake
new file mode 100644
index 0000000..2a46ab9
--- /dev/null
+++ b/Tests/RunCMake/install/TARGETS-Parts.cmake
@@ -0,0 +1,7 @@
+enable_language(C)
+add_library(mylib STATIC obj1.c)
+set_property(TARGET mylib PROPERTY PUBLIC_HEADER obj1.h)
+install(TARGETS mylib
+ ARCHIVE DESTINATION lib
+ PUBLIC_HEADER DESTINATION include
+ )