summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-25 18:36:05 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-29 13:35:20 (GMT)
commita048be7e3a3c25afd87bd999916e23f541c3db38 (patch)
tree787d06e71ac43ba356eca322be54726c6a327223
parenta6ebd68aa7917fda6afd06064b862118ef26f6dd (diff)
downloadCMake-a048be7e3a3c25afd87bd999916e23f541c3db38.zip
CMake-a048be7e3a3c25afd87bd999916e23f541c3db38.tar.gz
CMake-a048be7e3a3c25afd87bd999916e23f541c3db38.tar.bz2
Tests/RunCMake/property_init: test 'imported' properties
-rw-r--r--Tests/RunCMake/property_init/ImportedTargets.cmake9
-rw-r--r--Tests/RunCMake/property_init/RunCMakeTest.cmake1
2 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/property_init/ImportedTargets.cmake b/Tests/RunCMake/property_init/ImportedTargets.cmake
new file mode 100644
index 0000000..0b51998
--- /dev/null
+++ b/Tests/RunCMake/property_init/ImportedTargets.cmake
@@ -0,0 +1,9 @@
+set(properties
+ # property expected alias
+ "SYSTEM" "ON" "<SAME>"
+ )
+
+prepare_target_types(imported
+ IMPORTED_EXECUTABLE IMPORTED_INTERFACE IMPORTED_MODULE IMPORTED_OBJECT IMPORTED_SHARED IMPORTED_STATIC)
+set(with_defaults 1)
+run_property_tests(imported properties)
diff --git a/Tests/RunCMake/property_init/RunCMakeTest.cmake b/Tests/RunCMake/property_init/RunCMakeTest.cmake
index b8c155f..6ac4ceb 100644
--- a/Tests/RunCMake/property_init/RunCMakeTest.cmake
+++ b/Tests/RunCMake/property_init/RunCMakeTest.cmake
@@ -3,3 +3,4 @@ include(RunCMake)
run_cmake(Always)
run_cmake(CompileSources)
run_cmake(Executable)
+run_cmake(ImportedTargets)