summaryrefslogtreecommitdiffstats
path: root/Tests/SimpleInstall
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-27 20:05:42 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-27 20:05:42 (GMT)
commit8302ea66d2b385c6161c69b0afd28d64dd44f135 (patch)
tree7c194ab26ca60e1fcde9168c54164e8e2cb57ad8 /Tests/SimpleInstall
parent3e12a6cb917d0e6a8b10e239a2e5fa9cf3a8c358 (diff)
downloadCMake-8302ea66d2b385c6161c69b0afd28d64dd44f135.zip
CMake-8302ea66d2b385c6161c69b0afd28d64dd44f135.tar.gz
CMake-8302ea66d2b385c6161c69b0afd28d64dd44f135.tar.bz2
ENH: add test for installing a header marked as PUBLIC_HEADER of a library
Alex
Diffstat (limited to 'Tests/SimpleInstall')
-rw-r--r--Tests/SimpleInstall/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/SimpleInstall/CMakeLists.txt b/Tests/SimpleInstall/CMakeLists.txt
index 2dc1412..2ac42e0 100644
--- a/Tests/SimpleInstall/CMakeLists.txt
+++ b/Tests/SimpleInstall/CMakeLists.txt
@@ -163,6 +163,7 @@ ELSE(STAGE2)
# Test per-configuration output name.
SET_TARGET_PROPERTIES(test1 PROPERTIES RELEASE_OUTPUT_NAME test1rel)
+ SET_TARGET_PROPERTIES(test2 PROPERTIES PUBLIC_HEADER foo.h)
IF(CMAKE_GENERATOR MATCHES "Makefiles")
ADD_SUBDIRECTORY(TestSubDir)
@@ -177,6 +178,7 @@ ELSE(STAGE2)
RUNTIME DESTINATION MyTest/bin COMPONENT Runtime # .exe, .dll
LIBRARY DESTINATION MyTest/lib COMPONENT Runtime # .so, mod.dll
ARCHIVE DESTINATION MyTest/lib/static COMPONENT Development # .a, .lib
+ PUBLIC_HEADER DESTINATION MyTest/include COMPONENT Development
)
INSTALL(TARGETS test4 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE