Changed the CMake configuration to explicitly install only the modern-DE and slate-DE theme sets.

This commit is contained in:
Leon Styhre 2023-01-16 17:18:55 +01:00
parent e8a093c19c
commit 5d5eaf2de2

View file

@ -172,7 +172,8 @@ if(WIN32)
install(FILES ../LICENSE DESTINATION .)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/licenses DESTINATION .)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes DESTINATION .)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes/modern-DE DESTINATION themes)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes/slate-DE DESTINATION themes)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/resources DESTINATION .)
elseif(APPLE)
# For completely unknown reasons, when generating a Bundle using cpack, an extra 'Resources'
@ -214,7 +215,8 @@ elseif(APPLE)
install(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION ../Resources)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/resources DESTINATION ../Resources)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes DESTINATION ../Resources)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes/modern-DE DESTINATION ../Resources/themes)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes/slate-DE DESTINATION ../Resources/themes)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/licenses DESTINATION ../Resources)
else()
install(TARGETS emulationstation RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
@ -237,8 +239,10 @@ else()
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/metainfo)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/licenses
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/emulationstation)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/emulationstation)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes/modern-DE
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/emulationstation/themes)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes/slate-DE
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/emulationstation/themes)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/resources
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/emulationstation)
endif()