xref: /6.0.3/cbas-ui/CMakeLists.txt (revision 0b143fb7)
1#
2# CMakeLists.txt for cbas-ui
3#
4# We need to copy the pluggable-ui-cbas.json to install/etc/couchbase,
5# and copy everything else to install/lib/cbas-ui
6# 
7CMAKE_MINIMUM_REQUIRED (VERSION 2.8.10)
8
9PROJECT (cbas-ui)
10
11# installed system now uses relative path, so no prefix
12SET (_instdir "${PROJECT_BINARY_DIR}")
13SET (BIN_PREFIX "")
14
15# rewrite the config file for installation
16configure_file (pluggable-ui-cbas.json.in pluggable-ui-cbas.json)
17
18# copy rewritten config file and code to install directory
19install(FILES "${_instdir}/pluggable-ui-cbas.json"
20		DESTINATION etc/couchbase)
21
22install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/cbas-ui
23		DESTINATION lib
24		REGEX libs-standalone EXCLUDE
25		PATTERN "*standalone.*" EXCLUDE)
26
27# rewrite the config file for running locally (using cluster-run)
28SET (BIN_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/")
29configure_file (pluggable-ui-cbas.json.in ${_instdir}/../cluster_run_ui_plugins/pluggable-ui-cbas.cluster_run.json)
30