forked from couchbase/query-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
29 lines (23 loc) · 963 Bytes
/
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
#
# CMakeLists.txt for query-ui
#
# We need to copy the pluggable-ui-query.json to install/etc/couchbase,
# and copy everything else to install/lib/query-ui
#
CMAKE_MINIMUM_REQUIRED (VERSION 2.8.10)
PROJECT (query-ui)
# installed system now uses relative path, so no prefix
SET (_instdir "${PROJECT_BINARY_DIR}")
SET (BIN_PREFIX "")
# rewrite the config file for installation
configure_file (pluggable-ui-query.json.in pluggable-ui-query.json)
# copy rewritten config file and code to install directory
install(FILES "${_instdir}/pluggable-ui-query.json"
DESTINATION etc/couchbase)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/query-ui
DESTINATION lib
REGEX libs-standalone EXCLUDE
PATTERN "*standalone.*" EXCLUDE)
# rewrite the config file for running locally (using cluster-run)
SET (BIN_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/")
configure_file (pluggable-ui-query.json.in ${_instdir}/../cluster_run_ui_plugins/pluggable-ui-query.cluster_run.json)