summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ObjectLibrary/InstallLinkedObj1.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-01 14:25:50 (GMT)
committerBrad King <brad.king@kitware.com>2018-03-01 14:28:00 (GMT)
commit7776ce98c3fc1fc656c646ea783c23aee27261a2 (patch)
tree89664e3d07dddfacb10b7b624a2d8a2da7822b08 /Tests/RunCMake/ObjectLibrary/InstallLinkedObj1.cmake
parentbafe655b11c876b45a5ce1fbaf4643593bdd22a3 (diff)
downloadCMake-7776ce98c3fc1fc656c646ea783c23aee27261a2.zip
CMake-7776ce98c3fc1fc656c646ea783c23aee27261a2.tar.gz
CMake-7776ce98c3fc1fc656c646ea783c23aee27261a2.tar.bz2
Tests: Add cases for usage requirements of linked object libs
Add tests to cover transitive usage requirements on installation and export of targets that link to object libraries. Issue: #14778
Diffstat (limited to 'Tests/RunCMake/ObjectLibrary/InstallLinkedObj1.cmake')
-rw-r--r--Tests/RunCMake/ObjectLibrary/InstallLinkedObj1.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/ObjectLibrary/InstallLinkedObj1.cmake b/Tests/RunCMake/ObjectLibrary/InstallLinkedObj1.cmake
new file mode 100644
index 0000000..9e24609
--- /dev/null
+++ b/Tests/RunCMake/ObjectLibrary/InstallLinkedObj1.cmake
@@ -0,0 +1,6 @@
+add_library(A OBJECT a.c)
+add_library(UseA STATIC)
+target_link_libraries(UseA PUBLIC A)
+
+install(TARGETS UseA EXPORT exp ARCHIVE DESTINATION lib)
+install(EXPORT exp DESTINATION lib/cmake/exp)