# # This file is used to executed given unit test commands locally, handling # additional arguments like 'exhaustive' and setting the DCMDICTPATH # environment variable appropriately. # set(ENV{DCMDICTPATH} "/Volumes/Data/workspace/med-macos-weekly/ExtProjs/DCMTK/dcmdata/data/dicom.dic:/Volumes/Data/workspace/med-macos-weekly/ExtProjs/DCMTK/dcmdata/data/private.dic") execute_process(COMMAND "${DCMTK_CTEST_TESTCASE_COMMAND}" $ENV{DCMTK_CTEST_EXTRA_ARGUMENTS} "${DCMTK_CTEST_TEST_NAME}" RESULT_VARIABLE RESULT ) # We cannot forward the result value to CMake, so print it instead and let CMake # return with code '1' or whatever it deems appropriate to notify about an error. if(RESULT) message(FATAL_ERROR "Test command returned: ${RESULT}") endif()