mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-01-01 03:18:32 +00:00
18 lines
524 B
CMake
18 lines
524 B
CMake
if (WIN32)
|
|
elseif (APPLE)
|
|
elseif (UNIX)
|
|
include(GNUInstallDirs)
|
|
|
|
if(NOT DEFINED SUNSHINE_EXECUTABLE_PATH)
|
|
set(SUNSHINE_EXECUTABLE_PATH "sunshine")
|
|
endif()
|
|
|
|
if(SUNSHINE_BUILD_FLATPAK)
|
|
set(SUNSHINE_SERVICE_START_COMMAND "ExecStart=${PROJECT_FQDN}")
|
|
set(SUNSHINE_SERVICE_STOP_COMMAND "ExecStop=flatpak kill ${PROJECT_FQDN}")
|
|
else()
|
|
set(SUNSHINE_SERVICE_START_COMMAND "ExecStart=${SUNSHINE_EXECUTABLE_PATH}")
|
|
set(SUNSHINE_SERVICE_STOP_COMMAND "")
|
|
endif()
|
|
endif ()
|