forked from decompfrontier/server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (24 loc) · 817 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cmake_minimum_required(VERSION 3.21)
project(GimuServer)
set(CMAKE_CXX_STANDARD 17)
if ("${GIMUSRV_FRONTEND}" STREQUAL "STANDALONE")
set(STANDALONE TRUE)
elseif ("${GIMUSRV_FRONTEND}" STREQUAL "PROXYAPPX")
set(APPX TRUE)
else()
message(FATAL_ERROR "Invalid frontend configuration")
endif()
set(SERVER_VERSION_REV 1) # Increment this when a new release happens
set(SERVER_YEAR "2022-2024")
set(SERVER_ISSUE_URL "https://www.github.com/decompfrontier/server/issues/")
set(SERVER_HOME_PAGE "https://decompfrontier.github.io/")
find_package(cryptopp CONFIG REQUIRED)
find_package(Drogon CONFIG REQUIRED)
find_package(unofficial-sqlite3 CONFIG REQUIRED)
add_subdirectory(gimuserver)
if (STANDALONE)
add_subdirectory(standalone_frontend)
endif()
if (APPX)
add_subdirectory(game_frontend)
endif()