allow for alternate RSDK

This commit is contained in:
Chuli 2023-03-11 13:54:43 -06:00
parent ff82bdcfc1
commit 7a4a021057
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -248,3 +248,4 @@ Ignored/
android/local.properties
*.res
dependencies/*

View File

@ -55,7 +55,9 @@ set_target_properties(${GAME_NAME} PROPERTIES OUTPUT_NAME ${GAME_OUTPUT_NAME})
message(NOTICE "static " ${GAME_STATIC})
if(WITH_RSDK)
add_subdirectory(dependencies/RSDKv5)
set(RSDK_PATH dependencies/RSDKv5 CACHE STRING "The path to look for RSDKv5 if using WITH_RSDK.")
add_subdirectory(${RSDK_PATH})
if(GAME_STATIC)
target_include_directories(RetroEngine PRIVATE ${GAME_NAME}/)