-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (20 loc) · 1.15 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
project(YCSoar)
cmake_minimum_required(VERSION 3.0)
enable_testing()
set_property(GLOBAL PROPERTY JOB_POOLS compile_pool=4)
set_property(GLOBAL PROPERTY JOB_POOL_COMPILE compile_pool)
set(warnings "-Wno-error=unused-parameter -Wall -Wextra -Wwrite-strings -Wcast-qual -Wpointer-arith -Wsign-compare -Wundef -Wmissing-declarations -Wredundant-decls -Wmissing-noreturn -Wno-unused-parameter -Wno-missing-field-initializers -Wcast-align -Werror")
#if (NOT CONFIGURED_ONCE)
set(CMAKE_CXX_FLAGS "${warnings} -fno-exceptions -fno-rtti -std=gnu++0x -fno-threadsafe-statics -fmerge-all-constants -fvisibility=hidden -fpic -funwind-tables -finput-charset=utf-8"
CACHE STRING "Flags used by the compiler during all build types." FORCE)
set(CMAKE_C_FLAGS "${warnings}"
CACHE STRING "Flags used by the compiler during all build types." FORCE)
#endif()
add_definitions(-DRADIANS # Do everything in radians.
-DUSE_WGS84 # And on WGS84.
)
add_subdirectory(./tools)
add_subdirectory(./generate)
add_subdirectory(./build)
set(CONFIGURED_ONCE TRUE CACHE INTERNAL
"A flag showing that CMake has configured at least once.")