cmake: install ceph-mgr and its python modules

Signed-off-by: Tim Serong <tserong@suse.com>
This commit is contained in:
Tim Serong 2016-09-07 15:39:36 +10:00 committed by John Spray
parent da76c59efc
commit c6972b983b
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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)