forked from couchbase/couchbase-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
59 lines (52 loc) · 1.38 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
PROJECT(CouchbaseClient)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
# Generate the Version module
CONFIGURE_FILE (cb_version.cmake.py
cb_version.py)
# Copy couchstore.py from couchstore so we can import it
CONFIGURE_FILE (../couchstore/python/couchstore.py couchstore.py COPYONLY)
# Install all executable Python scripts, with wrappers
PyWrapper (BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}"
SCRIPTS
couchbase-cli
cblogredaction
cbrestorewrapper
cbbackup
cbbackupwrapper
cbrecovery
cbrestore
cbtransfer
cbworkloadgen)
# Install dependent Python files
INSTALL (FILES
cb_bin_client.py
cb_util.py
cbmgr.py
cluster_manager.py
couchbaseConstants.py
pbar.py
pump.py
pump_bfd.py
pump_cb.py
pump_csv.py
pump_gen.py
pump_json.py
pump_mc.py
pump_sfd.py
pump_transfer.py
pump_dcp.py
${CMAKE_CURRENT_BINARY_DIR}/cb_version.py
${CMAKE_CURRENT_BINARY_DIR}/couchstore.py
DESTINATION lib/python)
IF (BUILD_ENTERPRISE)
INSTALL (FILES pump_bfd2.py DESTINATION lib/python)
ENDIF ()
INSTALL (DIRECTORY requests DESTINATION lib/python)
ADD_SUBDIRECTORY(docs)
ADD_CUSTOM_TARGET (couchbase-cli-clean
COMMAND git clean -dfx
COMMENT "Cleaning couchbase-cli directory"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
IF (TARGET realclean)
ADD_DEPENDENCIES (realclean couchbase-cli-clean)
ENDIF ()