forked from couchbase/couchbase-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
85 lines (76 loc) · 2.74 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
PROJECT(CouchbaseClient)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
# Generate the python wrappers
CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/wrapper/wrapper
${CMAKE_CURRENT_BINARY_DIR}/wrapper/couchbase-cli)
CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/wrapper/wrapper
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbtransfer)
CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/wrapper/wrapper
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbworkloadgen)
CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/wrapper/wrapper
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbrecovery)
CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/wrapper/wrapper
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cblogredaction)
INSTALL(PROGRAMS
${CMAKE_CURRENT_BINARY_DIR}/wrapper/couchbase-cli
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbtransfer
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbworkloadgen
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbrecovery
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cblogredaction
DESTINATION bin)
INSTALL(PROGRAMS
couchbase-cli
cbtransfer
cbworkloadgen
cbrecovery
cblogredaction
DESTINATION lib/python)
CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/wrapper/wrapper
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbbackup)
CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/wrapper/wrapper
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbrestore)
CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/wrapper/wrapper
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbbackupwrapper)
CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/wrapper/wrapper
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbrestorewrapper)
INSTALL(PROGRAMS
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbbackup
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbrestore
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbbackupwrapper
${CMAKE_CURRENT_BINARY_DIR}/wrapper/cbrestorewrapper
DESTINATION bin)
INSTALL(PROGRAMS
cbbackup
cbrestore
cbbackupwrapper
cbrestorewrapper
DESTINATION lib/python)
INSTALL(FILES
argparse.py
cb_bin_client.py
cb_util.py
cbmgr.py
cbsnappy.py
cluster_manager.py
couchbaseConstants.py
pbar.py
pump.py
pump_bfd.py
pump_bson.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
DESTINATION lib/python)
IF (BUILD_ENTERPRISE)
INSTALL(FILES
pump_bfd2.py
DESTINATION lib/python)
ENDIF (BUILD_ENTERPRISE)
INSTALL(DIRECTORY requests
DESTINATION lib/python/)
ADD_SUBDIRECTORY(docs)