try to fix rpath issue

This commit is contained in:
SamGondelman 2016-08-12 13:35:57 -07:00 committed by Brad Davis
parent 7e0ad52cd5
commit 74e5814a48
3 changed files with 12 additions and 1 deletions

View file

@ -1,5 +1,10 @@
set(TARGET_NAME assignment-client)
# Fix up the rpath so macdeployqt works
if (APPLE)
set_target_properties(${TARGET_NAME} PROPERTIES INSTALL_RPATH "@executable_path/../Frameworks")
endif ()
setup_hifi_project(Core Gui Network Script Quick Widgets WebSockets)
# link in the shared libraries

View file

@ -6,6 +6,11 @@ else ()
set(_SHOULD_SYMLINK_RESOURCES FALSE)
endif ()
# Fix up the rpath so macdeployqt works
if (APPLE)
set_target_properties(${TARGET_NAME} PROPERTIES INSTALL_RPATH "@executable_path/../Frameworks")
endif ()
# setup the project and link required Qt modules
setup_hifi_project(Network)

View file

@ -123,7 +123,8 @@ if (APPLE)
add_executable(${TARGET_NAME} MACOSX_BUNDLE ${INTERFACE_SRCS} ${QM})
# make sure the output name for the .app bundle is correct
set_target_properties(${TARGET_NAME} PROPERTIES OUTPUT_NAME ${INTERFACE_BUNDLE_NAME})
# Fix up the rpath so macdeployqt works
set_target_properties(${TARGET_NAME} PROPERTIES INSTALL_RPATH "@executable_path/../Frameworks")
elseif (WIN32)
# configure an rc file for the chosen icon
set(CONFIGURE_ICON_PATH "${CMAKE_CURRENT_SOURCE_DIR}/icon/${INTERFACE_ICON_FILENAME}")