-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
57 lines (47 loc) · 1.16 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Project Root
# WindowTrees
cmake_minimum_required(VERSION 3.2.0)
project (WindowTrees VERSION 05.21.2022 LANGUAGES CXX)
# use C++17 language standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_VERBOSE_MAKEFILE ON)
add_subdirectory("src/Protocol/")
add_subdirectory("src/WindowManager/")
if(NOT WIN32)
add_subdirectory("src/XServer/")
add_subdirectory("src/SDLServer/")
endif(NOT WIN32)
add_subdirectory("src/SGLServer/")
add_subdirectory("src/Tiles")
add_subdirectory("src/Term")
# Configure flags for the C++ compiler
# (In general, many warnings/errors are enabled to tighten compile-time checking.
# A few overly pedantic/confusing errors are turned off to avoid confusion.)
set(CMAKE_BUILD_TYPE Debug)
add_compile_options(
-g
-Wall
-Wextra
-Werror=return-type
-Werror=uninitialized
-Wunused-parameter
-Wmissing-field-initializers
-Wno-old-style-cast
-Wno-sign-compare
-Wno-sign-conversion
)
if(NOT WIN32)
file(CREATE_LINK
${CMAKE_SOURCE_DIR}/res
${CMAKE_BINARY_DIR}/src/SGLServer/res
SYMBOLIC
)
endif()
# set a cmake variable
# set(WIN32 TRUE)
# set a preprocessor variable
# add_compile_definitions(
# VAR1
# VAR2=VALUE
# )