set RPATH on unix build for game maker usage

pull/1/head
cosmonaut 2021-10-29 15:35:35 -07:00
parent 3f83d2a825
commit cced5c0d94
2 changed files with 9 additions and 1 deletions

View File

@ -35,6 +35,14 @@ elseif(WIN32)
set(CMAKE_SHARED_LIBRARY_PREFIX "")
endif()
if(UNIX)
SET(BIN_RPATH "\$ORIGIN/assets") #thanks yoyo games
set(CMAKE_SKIP_BUILD_RPATH TRUE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(CMAKE_INSTALL_RPATH ${BIN_RPATH})
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
endif()
# Source lists
add_library(FAudioGMS
#Public header

BIN
gamemaker/extensions/FAudioGMS/libFAudioGMS.so (Stored with Git LFS) Normal file → Executable file

Binary file not shown.