forked from FoundationDB/fdb-document-layer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (34 loc) · 1.22 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
cmake_minimum_required(VERSION 3.11)
project(fdb_doc_layer VERSION 1.6.0 LANGUAGES C CXX)
set(default_build_type "RelWithDbgInfo")
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to '${default_build_type}' as none was specified.")
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE
STRING "Choose the type of build." FORCE)
# Set the possible values of build type for cmake-gui
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
"Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif()
if(DEFINED ENV{RELEASE})
message(STATUS "Running Release build")
set(BUILD_PRERELEASE OFF)
else()
message(STATUS "Running Pre-release build")
set(BUILD_PRERELEASE ON)
endif()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(Boost_USE_STATIC_LIBS ON)
set(FDB_VERSION 6.0.11)
if(DEFINED ENV{IDE_BUILD})
message(STATUS "Doing IDE build")
set(DO_IDE_BUILD ON)
else()
message(STATUS "Doing Normal build")
set(DO_IDE_BUILD OFF)
endif()
find_package(Boost 1.67 EXACT REQUIRED COMPONENTS filesystem system)
find_package(Threads)
add_subdirectory(src)