-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
executable file
·47 lines (40 loc) · 1.05 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
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(VariantTalk)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(SFML 2.4 COMPONENTS graphics window system REQUIRED)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
if(MSVC)
add_compile_options(
/MP
/W4
/WX
/wd4503 # Decorated name length exceeded
/wd4800 # Forcing value to bool
)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(
-Werror
-Weverything
-Wno-c++98-compat
-Wno-c++98-compat-pedantic
-Wno-padded
-Wno-switch-enum
-Wno-poison-system-directories
-fcolor-diagnostics
)
elseif(CMAKE_COMPILER_IS_GNUCXX)
add_compile_options(
-Werror
-Wall
-Wextra
-pedantic
)
else()
message(FATAL_ERROR "Unrecognized compiler")
endif()
add_subdirectory(event-handling)
add_subdirectory(lang-vm)
add_subdirectory(state-machine)