From: Tim Serong Date: Wed, 7 Sep 2016 05:39:36 +0000 (+1000) Subject: cmake: install ceph-mgr and its python modules X-Git-Tag: v11.0.1~60^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c6972b983ba593ded0085ea97f7154a387d47d40;p=ceph.git cmake: install ceph-mgr and its python modules Signed-off-by: Tim Serong --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5428d264ca7a..caab0a37cd37 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -532,6 +532,7 @@ if (WITH_MGR) target_include_directories(ceph-mgr PRIVATE "${PYTHON_INCLUDE_DIRS}") target_link_libraries(ceph-mgr mds osdc global -lboost_python ${PYTHON_LIBRARIES} ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} ${TCMALLOC_LIBS}) + install(TARGETS ceph-mgr DESTINATION bin) endif (WITH_MGR) set(librados_config_srcs diff --git a/src/pybind/CMakeLists.txt b/src/pybind/CMakeLists.txt index 8449e15200e5..6be1930b923c 100644 --- a/src/pybind/CMakeLists.txt +++ b/src/pybind/CMakeLists.txt @@ -55,3 +55,11 @@ endforeach() install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/ceph_rest_api.py DESTINATION ${PYTHON_INSTDIR}) + +if(WITH_MGR) + # Needs to match src/common/config_opts.h, which has: + # OPTION(mgr_module_path, OPT_STR, CEPH_PKGLIBDIR "/mgr") + install(DIRECTORY + ${CMAKE_CURRENT_SOURCE_DIR}/mgr + DESTINATION ${CMAKE_INSTALL_PKGLIBDIR}) +endif(WITH_MGR)