Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (25 sloc) 1.008 kB
# -------------------------------------------------------------------------
# Find and install DCMTK Apps
# -------------------------------------------------------------------------
set(DCMTK_Apps storescu storescp dcmdump dump2dcm img2dcm dcmdjpeg dcmqrscp dcm2xml dsr2xml dsrdump echoscu)
set(int_dir "")
if(CMAKE_CONFIGURATION_TYPES)
set(int_dir "Release/")
endif()
foreach(dcmtk_App ${DCMTK_Apps})
install(PROGRAMS ${DCMTK_DIR}/bin/${int_dir}${dcmtk_App}${CMAKE_EXECUTABLE_SUFFIX}
DESTINATION ${Slicer_INSTALL_BIN_DIR}
COMPONENT Runtime
)
if(APPLE)
# Fixes Slicer issue #3827
set(dollar "$")
install(CODE
"set(app ${Slicer_INSTALL_BIN_DIR}/${dcmtk_App})
set(appfilepath \"${dollar}ENV{DESTDIR}${dollar}{CMAKE_INSTALL_PREFIX}/${dollar}{app}\")
message(\"CPack: - Adding rpath to ${dollar}{app}\")
execute_process(COMMAND install_name_tool -add_rpath @loader_path/.. ${dollar}{appfilepath})"
COMPONENT Runtime
)
endif()
endforeach()
Jump to Line
Something went wrong with that request. Please try again.