-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
36 lines (31 loc) · 1.59 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
cmake_minimum_required(VERSION 3.10)
set(PROTOZERO_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/submodules/protozero/include")
set(OSMIUM_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/submodules/libosmium/include")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/submodules/libosmium/cmake/")
set(CMAKE_CXX_FLAGS_RelWithDebInfoAndAssert "-Wall -Wabi -Wextra -O3 -g" CACHE STRING
"Flags used by the C++ compiler during RelWithDebInfoAndAssert builds."
FORCE)
set(CMAKE_C_FLAGS_RelWithDebInfoAndAssert "-Wall -Wabi -Wextra -pedantic -O3 -g" CACHE STRING
"Flags used by the C compiler during RelWithDebInfoAndAssert builds."
FORCE)
set(CMAKE_EXE_LINKER_FLAGS_RelWithDebInfoAndAssert
"-Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING
"Flags used for linking binaries during RelWithDebInfoAndAssert builds."
FORCE)
set(CMAKE_SHARED_LINKER_FLAGS_RelWithDebInfoAndAssert
"-Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING
"Flags used by the shared libraries linker during RelWithDebInfoAndAssert builds."
FORCE)
mark_as_advanced(
CMAKE_CXX_FLAGS_RelWithDebInfoAndAssert
CMAKE_C_FLAGS_RelWithDebInfoAndAssert
CMAKE_EXE_LINKER_FLAGS_RelWithDebInfoAndAssert
CMAKE_SHARED_LINKER_FLAGS_RelWithDebInfoAndAssert)
# Update the documentation string of CMAKE_BUILD_TYPE for GUIs
set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel RelWithDebInfoAndAssert."
FORCE)
add_subdirectory(submodules/type_safe EXCLUDE_FROM_ALL)
add_subdirectory(submodules)
add_subdirectory(src)