Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
fix: fixed macOS RPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
QxQ authored Aug 2, 2020
1 parent 65aa86b commit 135d0b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ add_library(${PROJECT_NAME} MODULE
widgets/TrojanGoOutboundWidget.ui
resx.qrc
${QVPLUGIN_INTERFACE_HEADERS})

if(APPLE)
add_custom_command(TARGET ${PROJECT_NAME}
POST_BUILD
COMMAND ${CMAKE_INSTALL_NAME_TOOL} -add_rpath "@executable_path/../Frameworks/" $<TARGET_FILE:${PROJECT_NAME}>)
endif()

target_link_libraries(${PROJECT_NAME}
Qt5::Core
Expand Down

0 comments on commit 135d0b8

Please sign in to comment.