mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-01-06 00:56:13 +00:00
18 lines
421 B
CMake
18 lines
421 B
CMake
# unix specific packaging
|
|
# put anything here that applies to both linux and macos
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
# 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}")
|