From c6972b983ba593ded0085ea97f7154a387d47d40 Mon Sep 17 00:00:00 2001 From: Tim Serong Date: Wed, 7 Sep 2016 15:39:36 +1000 Subject: [PATCH] cmake: install ceph-mgr and its python modules Signed-off-by: Tim Serong --- src/CMakeLists.txt | 1 + src/pybind/CMakeLists.txt | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5428d264ca7..caab0a37cd3 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 8449e15200e..6be1930b923 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)