Older/CMakeLists.txt
amass 8045cd2990
Some checks failed
Deploy / Build (push) Failing after 33s
update nginx conf.
2025-01-27 16:58:35 +08:00

44 lines
1.2 KiB
CMake

cmake_minimum_required(VERSION 3.17)
project(Older)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(Libraries_ROOT /opt/Libraries)
set(Wt_DIR ${Libraries_ROOT}/wt-4.11.1/lib/cmake/wt)
set(MbedTLS_DIR ${Libraries_ROOT}/mbedtls-3.6.2/lib/cmake/MbedTLS)
set(nng_DIR ${Libraries_ROOT}/nng-1.10/lib/cmake/nng)
set(LibDataChannel_DIR ${Libraries_ROOT}/libdatachannel-0.22.4/lib/cmake/LibDataChannel)
if(APPLE)
set(OpenSSL_ROOT /opt/homebrew/Cellar/openssl@3/3.4.0)
set(OPENSSL_INCLUDE_DIR ${OpenSSL_ROOT}/include)
endif()
set(OPENSSL_LIBRARY_DIRS ${OpenSSL_ROOT}/lib)
set(OPENSSL_LIBRARIES ssl crypto)
include(FetchContent)
FetchContent_Declare(Kylin
GIT_REPOSITORY https://gitea.amass.fun/amass/Kylin.git
)
set(KYLIN_WITH_NNG ON)
# add_subdirectory(/mnt/e/Projects/Kylin Kylin)
FetchContent_MakeAvailable(Kylin)
FetchContent_Declare(ftxui
GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
GIT_TAG main # Important: Specify a version or a commit hash here.
)
FetchContent_MakeAvailable(ftxui)
add_subdirectory(Database)
add_subdirectory(WebApplication)
add_subdirectory(Server)
add_subdirectory(ThirdParty)
add_subdirectory(UnitTest)
if(NOT APPLE)
add_subdirectory(MediaServer)
add_subdirectory(ToolKit)
endif()