build(cmake): add prep/init.cmake (#2375)
Co-authored-by: James Le Cuirot <chewi@aura-online.co.uk>
This commit is contained in:
parent
1ed22ab3b2
commit
59ce8deb97
4 changed files with 12 additions and 6 deletions
9
cmake/prep/init.cmake
Normal file
9
cmake/prep/init.cmake
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
if (WIN32)
|
||||
elseif (APPLE)
|
||||
elseif (UNIX)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
if(NOT DEFINED SUNSHINE_EXECUTABLE_PATH)
|
||||
set(SUNSHINE_EXECUTABLE_PATH "sunshine")
|
||||
endif()
|
||||
endif ()
|
||||
|
|
@ -6,8 +6,6 @@ if (APPLE)
|
|||
configure_file(packaging/macos/sunshine.rb sunshine.rb @ONLY)
|
||||
endif()
|
||||
elseif (UNIX)
|
||||
include(GNUInstallDirs) # this needs to be included prior to configuring the desktop files
|
||||
|
||||
# configure the .desktop file
|
||||
if(${SUNSHINE_BUILD_APPIMAGE})
|
||||
configure_file(packaging/linux/AppImage/sunshine.desktop sunshine.desktop @ONLY)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue