refactor(cmake): split CMakeLists into modules (#1587)

This commit is contained in:
ReenigneArcher
2023-09-04 20:16:30 -04:00
committed by GitHub
parent 9543bc77d8
commit 92b4eeee55
41 changed files with 1240 additions and 964 deletions

View File

@@ -0,0 +1,18 @@
# unix specific packaging
# put anything here that applies to both linux and macos
# return here if building a macos package
if(SUNSHINE_PACKAGE_MACOS)
return()
endif()
# Installation destination dir
set(CPACK_SET_DESTDIR true)
if(NOT CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr/share/sunshine")
endif()
install(TARGETS sunshine RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
install(DIRECTORY "${SUNSHINE_SOURCE_ASSETS_DIR}/common/assets/"
DESTINATION "${SUNSHINE_ASSETS_DIR}")