-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
54 lines (38 loc) · 1.45 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
cmake_minimum_required(VERSION 3.8)
project(OGSEngine VERSION 0.6.1)
#####################################################################
# Define available options
option(OGS_DEV "Developer Build" OFF)
option(OGS_DEBUG "Debug Build" OFF)
option(OGS_4554 "4554 preset")
option(OGS_6153 "6153+ preset")
option(OGS_DEDICATED "Skip building of client-side modules" OFF)
#####################################################################
# Specify intermediate directory (for building purposes)
#set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/build)
# Specify output directory (for compiled binaries)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
# Set additional paths to search for cmake modules
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/")
#####################################################################
# Set C language standard
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
#set(CMAKE_C_STANDARD_EXTENSIONS ON)
# Set C++ language standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
#set(CMAKE_CXX_STANDARD_EXTENSIONS ON)
#####################################################################
if(OGS_DEV)
#add_definitions(-DOGS_DEV)
add_definitions(-DOGS_DEBUG)
endif()
if(OGS_DEDICATED)
add_definitions(-DSWDS)
endif()
#####################################################################
# Add subdirectories
# Add engine root directory
add_subdirectory(goldsrc)