From a2c9c4f202d1bfb104ddebf5db11f7b74824337f Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Wed, 22 Feb 2023 23:55:53 +0100 Subject: Add test for the new TARGET_RUNTIME_DLL_PATHS genex For one of the shared libraries the RUNTIME_OUTPUT_PATH is set to a subdir and the test is supposed to check that those directories appear in TARGET_RUNTIME_DLL_PATHS genex --- Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/shared.cmake | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/shared.cmake b/Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/shared.cmake index 806f0b6..c38fa39 100644 --- a/Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/shared.cmake +++ b/Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/shared.cmake @@ -4,6 +4,10 @@ add_executable(exe main.c) add_library(lib1 SHARED lib1.c) add_library(lib2 SHARED lib2.c) add_library(lib3 SHARED lib3.c) +if(WIN32 OR CYGWIN) + set_property(TARGET lib3 PROPERTY RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/SomeSubDir/") +endif() + add_library(static STATIC static.c) add_library(imported SHARED IMPORTED) set_property(TARGET imported PROPERTY IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/imported.dll") @@ -26,9 +30,16 @@ if(WIN32 OR CYGWIN) "$" "$" ) + set(expected_dll_dirs + "$>" + "$>" + "$>" + ) endif() -set(content "check_genex(\"${expected_dlls}\" \"$\")\n") +set(content "check_genex(\"${expected_dlls}\" \"$\") +check_genex(\"${expected_dll_dirs}\" \"$\")\n") + set(condition) get_property(multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) if(multi_config) -- cgit v0.12