Commit eec76c56 authored by partyd's avatar partyd
Browse files

ENH: On Mac we need to configure the path of each Qt Framework in the launcher.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@14932 3bd1e089-480b-0410-8dfb-8563597acbee
parent 5b4b427d
...@@ -746,6 +746,19 @@ IF(Slicer3_USE_QT) ...@@ -746,6 +746,19 @@ IF(Slicer3_USE_QT)
SET(designer_launcher_project_name SlicerQT) SET(designer_launcher_project_name SlicerQT)
GET_TARGET_PROPERTY(output_directory ${designer_launcher_project_name} LIBRARY_OUTPUT_DIRECTORY) GET_TARGET_PROPERTY(output_directory ${designer_launcher_project_name} LIBRARY_OUTPUT_DIRECTORY)
SET(Slicer3_QT_PLUGIN_PATH ${output_directory}) SET(Slicer3_QT_PLUGIN_PATH ${output_directory})
# on Mac we need to include the path of each Qt Framework in DYLD_LIBRARY_PATH in the launcher.
IF(APPLE)
SET (QTLIBLIST QTCORE QTGUI QTNETWORK QTXML QTTEST QTSQL QTOPENGL QTWEBKIT PHONON QTXMLPATTERNS)
FOREACH(qtlib ${QTLIBLIST})
IF (QT_${qtlib}_LIBRARY_RELEASE AND APPLE)
GET_FILENAME_COMPONENT(QT_FRAMEWORK_NAME_tmp ${QT_${qtlib}_LIBRARY_RELEASE} NAME)
SET(Slicer3_QT_FRAMEWORK_DIRS "lib/Qt/${QT_FRAMEWORK_NAME_tmp}/Versions/4:${Slicer3_QT_FRAMEWORK_DIRS}")
ENDIF()
ENDFOREACH(qtlib)
ENDIF(APPLE)
ENDIF(Slicer3_USE_QT) ENDIF(Slicer3_USE_QT)
CONFIGURE_FILE( CONFIGURE_FILE(
......
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