Commit 434434fe authored by jcfr's avatar jcfr
Browse files

ENH: SlicerQT - Add Designer launcher configuration to a separate folder:...

ENH: SlicerQT - Add Designer launcher configuration to a separate folder: Slicer3/Utilities/Designer

git-svn-id: http://svn.slicer.org/Slicer4/trunk@11547 3bd1e089-480b-0410-8dfb-8563597acbee
parent 55a09a45
......@@ -478,6 +478,7 @@ install(DIRECTORY
#-----------------------------------------------------------------------------
# Launcher for slicer
#
IF (Slicer3_USE_KWWIDGETS)
add_subdirectory(Utilities/Launcher)
......@@ -491,6 +492,14 @@ IF (Slicer3_USE_KWWIDGETS)
)
ENDIF (Slicer3_USE_KWWIDGETS)
#-----------------------------------------------------------------------------
# Launcher for QTDesigner
#
IF (Slicer3_USE_QT)
add_subdirectory(Utilities/Designer)
ENDIF (Slicer3_USE_QT)
#-----------------------------------------------------------------------------
# Package slicer
#
......
# Configure Qt Designer launcher
IF(Slicer3_USE_QT)
GET_TARGET_PROPERTY(output_directory ${PROJECT_NAME} LIBRARY_OUTPUT_DIRECTORY)
#MESSAGE(STATUS CMAKE_CONFIGURATION_TYPES:${CMAKE_CONFIGURATION_TYPES})
#MESSAGE(STATUS CMAKE_BUILD_TYPE:${CMAKE_BUILD_TYPE})
IF(CMAKE_CONFIGURATION_TYPES)
FOREACH(config ${CMAKE_CONFIGURATION_TYPES})
SET(LIBRARY_OUTPUT_DIRECTORY ${output_directory}/${config})
SET(designer_launcher "${Slicer3_BINARY_DIR}/Designer-${config}.py")
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/Designer.py.in
${designer_launcher}
IMMEDIATE
)
MESSAGE(STATUS "Configuring Designer launcher:"${designer_launcher})
ENDFOREACH(config)
ELSE(CMAKE_CONFIGURATION_TYPES)
SET(LIBRARY_OUTPUT_DIRECTORY ${output_directory})
SET(designer_launcher "${Slicer3_BINARY_DIR}/Designer.py")
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/Designer.py.in
${designer_launcher}
IMMEDIATE
)
MESSAGE(STATUS "Configuring Designer launcher:"${designer_launcher})
ENDIF(CMAKE_CONFIGURATION_TYPES)
ENDIF(Slicer3_USE_QT)
......@@ -57,27 +57,3 @@ install(
FILES "${CMAKE_CURRENT_SOURCE_DIR}/3DSlicerLogoICOimages/slicer3.ico"
DESTINATION ${Slicer3_INSTALL_SHARE_DIR}/Resources
)
# Configure Qt Designer launcher
IF(Slicer3_USE_QT)
GET_TARGET_PROPERTY(output_directory ${PROJECT_NAME} LIBRARY_OUTPUT_DIRECTORY)
#MESSAGE(STATUS CMAKE_CONFIGURATION_TYPES:${CMAKE_CONFIGURATION_TYPES})
#MESSAGE(STATUS CMAKE_BUILD_TYPE:${CMAKE_BUILD_TYPE})
IF(CMAKE_CONFIGURATION_TYPES)
FOREACH(config ${CMAKE_CONFIGURATION_TYPES})
SET(LIBRARY_OUTPUT_DIRECTORY ${output_directory}/${config})
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/Designer.py.in
"${Slicer3_BINARY_DIR}/Designer-${config}.py"
IMMEDIATE
)
ENDFOREACH(config)
ELSE(CMAKE_CONFIGURATION_TYPES)
SET(LIBRARY_OUTPUT_DIRECTORY ${output_directory})
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/Designer.py.in
"${Slicer3_BINARY_DIR}/Designer.py"
IMMEDIATE
)
ENDIF(CMAKE_CONFIGURATION_TYPES)
ENDIF(Slicer3_USE_QT)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment