automatically search for config file in the assets dir

This commit is contained in:
loki 2020-01-29 14:31:02 -05:00
commit c0ff2c79e8
3 changed files with 12 additions and 9 deletions

View file

@ -163,7 +163,7 @@ else()
endif()
if(NOT SUNSHINE_ROOT)
set(SUNSHINE_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
set(SUNSHINE_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/assets")
endif()
if(SUNSHINE_STANDALONE)
@ -182,7 +182,7 @@ list(APPEND SUNSHINE_EXTERNAL_LIBRARIES
${OPENSSL_LIBRARIES}
${PLATFORM_LIBRARIES})
list(APPEND SUNSHINE_DEFINITIONS SUNSHINE_ASSETS_DIR="${SUNSHINE_ROOT}/assets")
list(APPEND SUNSHINE_DEFINITIONS SUNSHINE_ASSETS_DIR="${SUNSHINE_ROOT}")
add_executable(sunshine ${SUNSHINE_TARGET_FILES})
target_link_libraries(sunshine ${SUNSHINE_EXTERNAL_LIBRARIES})
target_compile_definitions(sunshine PUBLIC ${SUNSHINE_DEFINITIONS})