From efad4391e58175d36dc1b12611e504b0a339aae0 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 25 Jul 2023 14:43:41 -0400 Subject: Tests/RunCMake/property_init: test 'with_commands' properties --- Tests/RunCMake/property_init/RunCMakeTest.cmake | 1 + Tests/RunCMake/property_init/TargetsWithCommands.cmake | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 Tests/RunCMake/property_init/TargetsWithCommands.cmake diff --git a/Tests/RunCMake/property_init/RunCMakeTest.cmake b/Tests/RunCMake/property_init/RunCMakeTest.cmake index 791d719..02b48c8 100644 --- a/Tests/RunCMake/property_init/RunCMakeTest.cmake +++ b/Tests/RunCMake/property_init/RunCMakeTest.cmake @@ -12,3 +12,4 @@ run_cmake(NormalTarget) run_cmake(PICTargets) run_cmake(SharedLibrary) run_cmake(TargetsWithArtifact) +run_cmake(TargetsWithCommands) diff --git a/Tests/RunCMake/property_init/TargetsWithCommands.cmake b/Tests/RunCMake/property_init/TargetsWithCommands.cmake new file mode 100644 index 0000000..4db0ca3 --- /dev/null +++ b/Tests/RunCMake/property_init/TargetsWithCommands.cmake @@ -0,0 +1,13 @@ +set(properties + # property expected alias + # Compilation properties + ## Language + ### CSharp + "DOTNET_TARGET_FRAMEWORK" "netcoreapp2.1" "" + "DOTNET_TARGET_FRAMEWORK_VERSION" "v4.5" "" + ) + +prepare_target_types(with_commands + EXECUTABLE MODULE OBJECT SHARED STATIC CUSTOM + IMPORTED_EXECUTABLE IMPORTED_MODULE IMPORTED_OBJECT IMPORTED_SHARED IMPORTED_STATIC) +run_property_tests(with_commands properties) -- cgit v0.12