Skip to content

Commit

Permalink
COMP: Fix ctkDICOMApplicationTest1 setting launch environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Jan 13, 2024
1 parent a43da9b commit 9de390e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Applications/Testing/Cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
$<TARGET_FILE:ctkDICOMApplicationTest1>
${DCMTK_DCMQRSCP_EXECUTABLE}
Expand All @@ -49,4 +51,6 @@ if(CTK_APP_ctkDICOMQuery AND CTK_APP_ctkDICOMRetrieve)
$<TARGET_FILE:ctkDICOMRetrieve>
${ctkDICOMRetrieve_STORE_DIR}
)

set_property(TEST ${testname} PROPERTY ENVIRONMENT_MODIFICATION "${CTK_TEST_LAUNCH_BUILD_ENVIRONMENT_MODIFICATION}")
endif()

0 comments on commit 9de390e

Please sign in to comment.