Refactor assets and config directories

This commit is contained in:
ReenigneArcher
2022-06-17 15:30:56 -04:00
parent 1cf0360520
commit bd51a7d5fa
3 changed files with 14 additions and 7 deletions

View File

@@ -414,6 +414,13 @@ if(NOT SUNSHINE_CONFIG_DIR)
set(SUNSHINE_CONFIG_DIR "${CMAKE_CURRENT_BINARY_DIR}/config")
endif()
if(CMAKE_INSTALL_PREFIX)
if(NOT ${SUNSHINE_CONFIGURE_APPIMAGE})
set(SUNSHINE_ASSETS_DIR "${CMAKE_INSTALL_PREFIX}/${SUNSHINE_ASSETS_DIR}")
set(SUNSHINE_CONFIG_DIR "${CMAKE_INSTALL_PREFIX}/${SUNSHINE_CONFIG_DIR}")
endif()
endif()
list(APPEND CBS_EXTERNAL_LIBRARIES
cbs)