diff options
author | Avraham Shukron <avraham.shukron@gmail.com> | 2019-04-05 21:27:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-04-11 15:09:42 (GMT) |
commit | a40f9083dd17d1cccf89ccdf290c3f494cab3aac (patch) | |
tree | 2170e1aeba12956f710761a7facc5286b7936dc0 /Tests/RunCMake/interface_library | |
parent | 4f07fdde26f1de59e2e8c2a32f0af7a2caff422d (diff) | |
download | CMake-a40f9083dd17d1cccf89ccdf290c3f494cab3aac.zip CMake-a40f9083dd17d1cccf89ccdf290c3f494cab3aac.tar.gz CMake-a40f9083dd17d1cccf89ccdf290c3f494cab3aac.tar.bz2 |
INTERFACE Target: allow (PUBLIC/PRIVATE)_HEADER properties
Also support installing headers on an INTERFACE library.
Signed-off-by: Avraham Shukron <avraham.shukron@gmail.com>
Fixes: #15234
Diffstat (limited to 'Tests/RunCMake/interface_library')
-rw-r--r-- | Tests/RunCMake/interface_library/whitelist.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/interface_library/whitelist.cmake b/Tests/RunCMake/interface_library/whitelist.cmake index bf64f01..0db6375 100644 --- a/Tests/RunCMake/interface_library/whitelist.cmake +++ b/Tests/RunCMake/interface_library/whitelist.cmake @@ -14,3 +14,12 @@ get_target_property(outname iface "_custom_property") set_property(TARGET iface PROPERTY "custom_property" output) set_property(TARGET iface APPEND PROPERTY "custom_property" append) get_target_property(outname iface "custom_property") + +# PUBLIC_HEADER / PRIVATE_HEADER properties are allowed +set_property(TARGET iface PROPERTY PUBLIC_HEADER foo.h) +set_property(TARGET iface APPEND PROPERTY PUBLIC_HEADER bar.h) +get_target_property(outname iface PUBLIC_HEADER) + +set_property(TARGET iface PROPERTY PRIVATE_HEADER foo.h) +set_property(TARGET iface APPEND PROPERTY PRIVATE_HEADER bar.h) +get_target_property(outname iface PRIVATE_HEADER) |