Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (19 sloc) 927 Bytes
#-----------------------------------------------------------------------------
# Set the default output paths for one or more plugins/CLP
#
macro(slicer3_set_plugins_output_path)
set_target_properties(${ARGN} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${Slicer_CLIMODULES_BIN_DIR}"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${Slicer_CLIMODULES_LIB_DIR}"
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${Slicer_CLIMODULES_LIB_DIR}"
)
endmacro(slicer3_set_plugins_output_path)
#-----------------------------------------------------------------------------
# Install one or more plugins to the default plugin location
#
macro(slicer3_install_plugins)
install(TARGETS ${ARGN}
RUNTIME DESTINATION ${Slicer_INSTALL_CLIMODULES_BIN_DIR} COMPONENT RuntimeLibraries
LIBRARY DESTINATION ${Slicer_INSTALL_CLIMODULES_LIB_DIR} COMPONENT RuntimeLibraries
)
endmacro(slicer3_install_plugins)
Something went wrong with that request. Please try again.