1#
2# This is the toplevel CMakeLists.txt that is used to build Couchbase
3#
4CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10)
5PROJECT("Couchbase")
6SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/tlm/cmake/Modules/")
7
8# Have to add deps first, before any other part of the build tries to
9# FIND anything
10ADD_SUBDIRECTORY(tlm/deps)
11
12INCLUDE(CouchbaseSingleModuleBuild)
13
14SET(ASTYLE_CFLAGS --recursive
15                  --mode=c
16                  --quiet
17                  --style=1tbs
18                  --indent=spaces=4
19                  --indent-namespaces
20                  --indent-col1-comments
21                  --max-instatement-indent=78
22                  --pad-oper
23                  --pad-header
24                  --add-brackets
25                  --unpad-paren
26                  --align-pointer=name
27                  "*.h" "*.c")
28
29# Add a quick (and safe) way to nuke everything
30ADD_CUSTOM_TARGET(reset
31                  COMMAND repo forall -c "git clean -dfx"
32                  VERBATIM)
33
34ADD_SUBDIRECTORY(platform)
35ADD_SUBDIRECTORY(memcached)
36ADD_SUBDIRECTORY(couchstore)
37ADD_SUBDIRECTORY(ep-engine)
38ADD_SUBDIRECTORY(couchbase-cli)
39ADD_SUBDIRECTORY(couchbase-examples)
40ADD_SUBDIRECTORY(healthchecker)
41ADD_SUBDIRECTORY(couchbase-python-client)
42ADD_SUBDIRECTORY(sigar)
43ADD_SUBDIRECTORY(moxi)
44ADD_SUBDIRECTORY(couchdb)
45ADD_SUBDIRECTORY(geocouch ${CMAKE_CURRENT_SOURCE_DIR}/geocouch/build)
46ADD_SUBDIRECTORY(ns_server ${CMAKE_CURRENT_SOURCE_DIR}/ns_server/build)
47