Set Linux DT_RUNPATH

This commit is contained in:
Dan Paulat 2023-04-21 18:06:25 -05:00
parent ebee726688
commit 17a9c9190d

View file

@ -384,6 +384,9 @@ target_link_libraries(scwx-qt PUBLIC Qt${QT_VERSION_MAJOR}::Widgets
target_link_libraries(supercell-wx PRIVATE scwx-qt
wxdata)
# Set DT_RUNPATH for Linux targets
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
install(TARGETS supercell-wx
qmaplibregl
RUNTIME_DEPENDENCIES