-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
38 lines (28 loc) · 828 Bytes
/
CMakeLists.txt
File metadata and controls
38 lines (28 loc) · 828 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
cmake_minimum_required(VERSION 3.30)
project(engine-master)
set(project_prefix ENGINE_)
option(${project_prefix}ENABLE_TESTS "Enables building tests" OFF)
option(${project_prefix}ENABLE_EXAMPLES "Enables building examples" OFF)
# We only support Clang for now
add_compile_options(
-Werror
-Wall
-Wextra
-Wpedantic
-Wconversion
-Wno-missing-field-initializers
-Wnon-virtual-dtor
-Wold-style-cast
-Wcast-align
-Wcast-qual
-Wnrvo
# TODO: remove this when there is no '-c' unused warning while testing package
-Wno-unused-command-line-argument
)
add_subdirectory(lib)
if (${project_prefix}ENABLE_TESTS)
add_subdirectory(tests)
endif ()
if (${project_prefix}ENABLE_EXAMPLES)
add_subdirectory(examples)
endif ()