set RPATH on unix build for game maker usage

mastering_effects
cosmonaut 2021-10-29 15:35:35 -07:00
parent 601aebaadd
commit de988f97a1
2 changed files with 8 additions and 0 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 Normal file → Executable file

Binary file not shown.