mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-07 10:20:46 +00:00
44 lines
1.3 KiB
CMake
44 lines
1.3 KiB
CMake
# load common dependencies
|
|
# this file will also load platform specific dependencies
|
|
|
|
# boost, this should be before Simple-Web-Server as it also depends on boost
|
|
include(dependencies/Boost_Sunshine)
|
|
|
|
# submodules
|
|
# moonlight common library
|
|
set(ENET_NO_INSTALL ON CACHE BOOL "Don't install any libraries built for enet")
|
|
add_subdirectory("${CMAKE_SOURCE_DIR}/third-party/moonlight-common-c/enet")
|
|
|
|
# web server
|
|
add_subdirectory("${CMAKE_SOURCE_DIR}/third-party/Simple-Web-Server")
|
|
|
|
# libdisplaydevice
|
|
add_subdirectory("${CMAKE_SOURCE_DIR}/third-party/libdisplaydevice")
|
|
|
|
# common dependencies
|
|
include("${CMAKE_MODULE_PATH}/dependencies/nlohmann_json.cmake")
|
|
find_package(OpenSSL REQUIRED)
|
|
find_package(PkgConfig REQUIRED)
|
|
find_package(Threads REQUIRED)
|
|
pkg_check_modules(CURL REQUIRED libcurl)
|
|
|
|
# miniupnp
|
|
pkg_check_modules(MINIUPNP miniupnpc REQUIRED)
|
|
include_directories(SYSTEM ${MINIUPNP_INCLUDE_DIRS})
|
|
|
|
# ffmpeg pre-compiled binaries
|
|
include("${CMAKE_MODULE_PATH}/dependencies/ffmpeg.cmake")
|
|
|
|
# platform specific dependencies
|
|
if(WIN32)
|
|
include("${CMAKE_MODULE_PATH}/dependencies/windows.cmake")
|
|
elseif(UNIX)
|
|
include("${CMAKE_MODULE_PATH}/dependencies/unix.cmake")
|
|
|
|
if(APPLE)
|
|
include("${CMAKE_MODULE_PATH}/dependencies/macos.cmake")
|
|
else()
|
|
include("${CMAKE_MODULE_PATH}/dependencies/linux.cmake")
|
|
endif()
|
|
endif()
|