Skip to content

Commit

Permalink
Refs #10840. MantidPlot starts, but still has issues with python.
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumsteve committed Jan 14, 2015
1 parent c0f1bcf commit f2d6a4d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
10 changes: 8 additions & 2 deletions Code/Mantid/Build/CMake/DarwinSetup.cmake
Expand Up @@ -102,6 +102,10 @@ endif()
###########################################################################
# Mac-specific installation setup
###########################################################################

set(CMAKE_MACOSX_RPATH 1)

#set ( CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/${LIB_DIR};${CMAKE_INSTALL_PREFIX}/${PLUGINS_DIR};${CMAKE_INSTALL_PREFIX}/${PVPLUGINS_DIR} )
set ( CMAKE_INSTALL_PREFIX "" )
set ( CPACK_PACKAGE_EXECUTABLES MantidPlot )
set ( INBUNDLE MantidPlot.app/ )
Expand All @@ -127,8 +131,10 @@ else()
set ( CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk )
set ( CMAKE_OSX_ARCHITECTURES x86_64 )
set ( CMAKE_OSX_DEPLOYMENT_TARGET 10.8 )
set ( PYQT4_PYTHONPATH /usr/local/lib/python${PY_VER}/site-packages/PyQt4 )
set ( SITEPACKAGES /usr/local/lib/python${PY_VER}/site-packages )
#set ( PYQT4_PYTHONPATH /usr/local/lib/python${PY_VER}/site-packages/PyQt4 )
set ( PYQT4_PYTHONPATH /usr/local/Cellar/pyqt/4.11.1/lib/python${PY_VER}/site-packages/PyQt4 )
#set ( SITEPACKAGES /usr/local/lib/python${PY_VER}/site-packages )
set ( SITEPACKAGES /usr/local/Cellar/sip/4.16.3_1/lib/python${PY_VER}/site-packages )
# use homebrew OpenSSL package
set ( OPENSSL_ROOT_DIR /usr/local/opt/openssl )
endif()
Expand Down
Expand Up @@ -130,7 +130,7 @@ set_target_output_directory ( PythonAPIModule ${OUTPUT_DIR} .pyd )

# Add the required dependencies
target_link_libraries ( PythonAPIModule PythonGeometryModule PythonKernelModule API )

set_target_properties( PythonAPIModule PROPERTIES INSTALL_RPATH "@loader_path/../../;@loader_path/../kernel/")
###########################################################################
# Installation settings
###########################################################################
Expand Down
Expand Up @@ -71,7 +71,7 @@ set_python_properties( PythonGeometryModule _geometry )
set_target_output_directory ( PythonGeometryModule ${OUTPUT_DIR} .pyd )
# Add the required dependencies
target_link_libraries ( PythonGeometryModule PythonKernelModule Geometry )

set_target_properties ( PythonGeometryModule PROPERTIES INSTALL_RPATH "@loader_path/../../;@loader_path/../kernel/")
###########################################################################
# Installation settings
###########################################################################
Expand Down
Expand Up @@ -158,7 +158,7 @@ set_python_properties( PythonKernelModule _kernel )
set_target_output_directory ( PythonKernelModule ${OUTPUT_DIR} .pyd )
# Add the required dependencies
target_link_libraries ( PythonKernelModule Kernel ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} ${PYTHON_DEPS} )

set_target_properties ( PythonKernelModule PROPERTIES INSTALL_RPATH "@loader_path/../../")
###########################################################################
# Installation settings
###########################################################################
Expand Down
1 change: 1 addition & 0 deletions Code/Mantid/MantidPlot/CMakeLists.txt
Expand Up @@ -903,6 +903,7 @@ target_link_libraries ( MantidPlot
)
# Plugin dependencies
add_dependencies( MantidPlot mantidqtpython )
set_target_properties(MantidPlot PROPERTIES INSTALL_RPATH "@executable_path/")


###########################################################################
Expand Down

0 comments on commit f2d6a4d

Please sign in to comment.