-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists-moxi.txt
38 lines (28 loc) · 1.18 KB
/
CMakeLists-moxi.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
#
# This is the toplevel CMakeLists.txt that is used to build standalone moxi.
# It expects to run in the context of the moxi manifest.
#
CMAKE_MINIMUM_REQUIRED (VERSION 2.8.10)
PROJECT ("moxi")
SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/tlm/cmake/Modules/")
IF (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
SET(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/install" CACHE STRING
"The install location" FORCE)
ENDIF (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
LIST(APPEND CMAKE_PREFIX_PATH "${CMAKE_INSTALL_PREFIX}")
# This is defined in forestdb but used in platform :(
FUNCTION (ENABLE_CODE_COVERAGE_REPORT)
ENDFUNCTION ()
INCLUDE (CMakePushCheckState)
INCLUDE (CheckCXXSourceCompiles)
INCLUDE (CouchbaseCompilerOptions)
# Have to define this before INCLUDE_DIR(platform), a bit oddly
INCLUDE_DIRECTORIES(BEFORE ${CMAKE_BINARY_DIR}/platform/include)
ADD_SUBDIRECTORY (googletest EXCLUDE_FROM_ALL)
SET (CB_DOWNLOAD_DEPS True)
SET (CB_DOWNLOAD_DEPS_DEFAULT_MANIFEST "${CMAKE_CURRENT_SOURCE_DIR}/tlm/deps/moxi-manifest.cmake")
ADD_SUBDIRECTORY (tlm/deps)
INCLUDE (FindCouchbaseLibevent)
INCLUDE (FindCouchbaseCurl)
ADD_SUBDIRECTORY (platform)
ADD_SUBDIRECTORY (moxi)