From 9de390e943cb398adbdcb0e998fc225bf8c6ae92 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Sat, 13 Jan 2024 06:11:26 -0500 Subject: [PATCH] COMP: Fix ctkDICOMApplicationTest1 setting launch environment --- Applications/Testing/Cpp/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Applications/Testing/Cpp/CMakeLists.txt b/Applications/Testing/Cpp/CMakeLists.txt index a828a24121..432ba87eb6 100644 --- a/Applications/Testing/Cpp/CMakeLists.txt +++ b/Applications/Testing/Cpp/CMakeLists.txt @@ -36,7 +36,9 @@ if(CTK_APP_ctkDICOMQuery AND CTK_APP_ctkDICOMRetrieve) ctk_add_executable_utf8(ctkDICOMApplicationTest1 ctkDICOMApplicationTest1.cpp) target_link_libraries(ctkDICOMApplicationTest1 Qt${CTK_QT_VERSION}::Core) - ADD_TEST( NAME ctkDICOMApplicationTest1 + set(testname ctkDICOMApplicationTest1) + + add_test( NAME ${testname} COMMAND $ ${DCMTK_DCMQRSCP_EXECUTABLE} @@ -49,4 +51,6 @@ if(CTK_APP_ctkDICOMQuery AND CTK_APP_ctkDICOMRetrieve) $ ${ctkDICOMRetrieve_STORE_DIR} ) + + set_property(TEST ${testname} PROPERTY ENVIRONMENT_MODIFICATION "${CTK_TEST_LAUNCH_BUILD_ENVIRONMENT_MODIFICATION}") endif()