diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-25 18:43:29 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-29 13:35:21 (GMT) |
commit | 5f1bf85f84991ea3e5973ddb904b5b0419303d89 (patch) | |
tree | cd6ed1fb410ca1e0d545efc31d5c43304241a8b8 /Tests/RunCMake | |
parent | 02972ed9e830929a1a719e619e492de4b6b0f72e (diff) | |
download | CMake-5f1bf85f84991ea3e5973ddb904b5b0419303d89.zip CMake-5f1bf85f84991ea3e5973ddb904b5b0419303d89.tar.gz CMake-5f1bf85f84991ea3e5973ddb904b5b0419303d89.tar.bz2 |
Tests/RunCMake/property_init: test 'with_artifact' properties
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r-- | Tests/RunCMake/property_init/RunCMakeTest.cmake | 1 | ||||
-rw-r--r-- | Tests/RunCMake/property_init/TargetsWithArtifact.cmake | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/Tests/RunCMake/property_init/RunCMakeTest.cmake b/Tests/RunCMake/property_init/RunCMakeTest.cmake index 214f279..791d719 100644 --- a/Tests/RunCMake/property_init/RunCMakeTest.cmake +++ b/Tests/RunCMake/property_init/RunCMakeTest.cmake @@ -11,3 +11,4 @@ run_cmake(NonImportedTarget) run_cmake(NormalTarget) run_cmake(PICTargets) run_cmake(SharedLibrary) +run_cmake(TargetsWithArtifact) diff --git a/Tests/RunCMake/property_init/TargetsWithArtifact.cmake b/Tests/RunCMake/property_init/TargetsWithArtifact.cmake new file mode 100644 index 0000000..0c19ea3 --- /dev/null +++ b/Tests/RunCMake/property_init/TargetsWithArtifact.cmake @@ -0,0 +1,19 @@ +set(dir "${CMAKE_CURRENT_BINARY_DIR}") + +per_config(properties + # property expected alias + # Compilation properties + "INTERPROCEDURAL_OPTIMIZATION_" "OFF" "<UNSET>" + + # Output location properties + "ARCHIVE_OUTPUT_DIRECTORY_" "${dir}" "<UNSET>" + "COMPILE_PDB_OUTPUT_DIRECTORY_" "${dir}" "<UNSET>" + "LIBRARY_OUTPUT_DIRECTORY_" "${dir}" "<UNSET>" + "PDB_OUTPUT_DIRECTORY_" "${dir}" "<UNSET>" + "RUNTIME_OUTPUT_DIRECTORY_" "${dir}" "<UNSET>" + ) + +prepare_target_types(with_artifact + EXECUTABLE MODULE SHARED STATIC + IMPORTED_EXECUTABLE IMPORTED_MODULE IMPORTED_SHARED IMPORTED_STATIC) +run_property_tests(with_artifact properties) |