diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-25 18:40:57 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-29 13:35:21 (GMT) |
commit | 653a32aa72ab1191d281a05b966eb599d473eedb (patch) | |
tree | 1f8c53bcf1ecb3a95ad52f3a5813070a9f23f41f /Tests/RunCMake/property_init | |
parent | 141049cf1654410efd961f424b65a5df6dd6fd5a (diff) | |
download | CMake-653a32aa72ab1191d281a05b966eb599d473eedb.zip CMake-653a32aa72ab1191d281a05b966eb599d473eedb.tar.gz CMake-653a32aa72ab1191d281a05b966eb599d473eedb.tar.bz2 |
Tests/RunCMake/property_init: test 'pic_targets' properties
Diffstat (limited to 'Tests/RunCMake/property_init')
-rw-r--r-- | Tests/RunCMake/property_init/PICTargets.cmake | 21 | ||||
-rw-r--r-- | Tests/RunCMake/property_init/RunCMakeTest.cmake | 1 |
2 files changed, 22 insertions, 0 deletions
diff --git a/Tests/RunCMake/property_init/PICTargets.cmake b/Tests/RunCMake/property_init/PICTargets.cmake new file mode 100644 index 0000000..6c99505 --- /dev/null +++ b/Tests/RunCMake/property_init/PICTargets.cmake @@ -0,0 +1,21 @@ +set(properties + # property expected alias + # Compilation properties + "POSITION_INDEPENDENT_CODE" "True" "<SAME>" + ) + +prepare_target_types(pic_targets + EXECUTABLE MODULE OBJECT SHARED STATIC + IMPORTED_MODULE IMPORTED_SHARED) +run_property_tests(pic_targets properties) + +set(APPEND properties_with_defaults + # property expected alias + "POSITION_INDEPENDENT_CODE" "True" "<SAME>" + ) + +prepare_target_types(pic_default_targets + MODULE SHARED + IMPORTED_MODULE IMPORTED_SHARED) +set(with_defaults 1) +run_property_tests(pic_default_targets properties_with_defaults) diff --git a/Tests/RunCMake/property_init/RunCMakeTest.cmake b/Tests/RunCMake/property_init/RunCMakeTest.cmake index be531db..6b4475c 100644 --- a/Tests/RunCMake/property_init/RunCMakeTest.cmake +++ b/Tests/RunCMake/property_init/RunCMakeTest.cmake @@ -9,3 +9,4 @@ run_cmake(Linkable) run_cmake(NonImportedNormalTarget) run_cmake(NonImportedTarget) run_cmake(NormalTarget) +run_cmake(PICTargets) |