-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
46 lines (38 loc) · 972 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
46 lines (38 loc) · 972 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
set(ENGINE_DIR C:/ShellEngine/out/build/x64-release/bin)
set(PROJECT_NAME "New Project")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED true)
set(EDITOR_TGT ShellEngineUserEditor)
set(CLIENT ShellEngineUser)
set(SERVER ShellEngineUserServer)
set(TARGETS ${CLIENT} ${SERVER})
cmake_minimum_required (VERSION 3.12)
project (
${PROJECT_NAME}
VERSION 0.1
LANGUAGES C CXX
)
include(FetchContent)
include(GenerateExportHeader)
FetchContent_Declare(
fmt
GIT_REPOSITORY "https://github.com/fmtlib/fmt"
GIT_TAG "10.2.1"
)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
FetchContent_MakeAvailable(fmt)
FetchContent_Declare(
GLM
GIT_REPOSITORY "https://github.com/g-truc/glm"
GIT_TAG "1.0.1"
)
FetchContent_MakeAvailable(GLM)
FETCHCONTENT_DECLARE(
JSON
GIT_REPOSITORY "https://github.com/nlohmann/json"
GIT_TAG "v3.11.3"
)
FETCHCONTENT_MAKEAVAILABLE(JSON)
add_subdirectory(Source)
add_subdirectory(EditorSource)
add_subdirectory(External/SQLite)