From a6ebd68aa7917fda6afd06064b862118ef26f6dd Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 25 Jul 2023 14:35:19 -0400 Subject: Tests/RunCMake/property_init: test 'executable' properties --- Tests/RunCMake/property_init/Executable.cmake | 25 +++++++++++++++++++++++++ Tests/RunCMake/property_init/RunCMakeTest.cmake | 1 + 2 files changed, 26 insertions(+) create mode 100644 Tests/RunCMake/property_init/Executable.cmake diff --git a/Tests/RunCMake/property_init/Executable.cmake b/Tests/RunCMake/property_init/Executable.cmake new file mode 100644 index 0000000..ede0e4b --- /dev/null +++ b/Tests/RunCMake/property_init/Executable.cmake @@ -0,0 +1,25 @@ +set(dir "${CMAKE_CURRENT_BINARY_DIR}") + +set(properties + # property expected alias + # Compilation properties + ## Platforms + ### Windows + "VS_DEBUGGER_COMMAND" "vsdbg" "" + "VS_DEBUGGER_COMMAND_ARGUMENTS" "/?" "" + "VS_DEBUGGER_ENVIRONMENT" "env=val" "" + "VS_DEBUGGER_WORKING_DIRECTORY" "${dir}" "" + + # Linking properties + ## Platforms + ### Android + "ANDROID_GUI" "OFF" "" + + # Metadata + "CROSSCOMPILING_EMULATOR" "emu" "" + ) + +prepare_target_types(executable + EXECUTABLE + IMPORTED_EXECUTABLE) +run_property_tests(executable properties) diff --git a/Tests/RunCMake/property_init/RunCMakeTest.cmake b/Tests/RunCMake/property_init/RunCMakeTest.cmake index ce66ff1..b8c155f 100644 --- a/Tests/RunCMake/property_init/RunCMakeTest.cmake +++ b/Tests/RunCMake/property_init/RunCMakeTest.cmake @@ -2,3 +2,4 @@ include(RunCMake) run_cmake(Always) run_cmake(CompileSources) +run_cmake(Executable) -- cgit v0.12