]> git.proxmox.com Git - ceph.git/blob - ceph/src/mgr/CMakeLists.txt
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / mgr / CMakeLists.txt
1 add_library(mgr_cap_obj OBJECT
2 MgrCap.cc)
3
4 set(mgr_srcs
5 ${CMAKE_SOURCE_DIR}/src/ceph_mgr.cc
6 ${CMAKE_SOURCE_DIR}/src/mon/PGMap.cc
7 ActivePyModule.cc
8 ActivePyModules.cc
9 BaseMgrModule.cc
10 BaseMgrStandbyModule.cc
11 ClusterState.cc
12 DaemonHealthMetricCollector.cc
13 DaemonServer.cc
14 DaemonState.cc
15 Gil.cc
16 Mgr.cc
17 MgrStandby.cc
18 OSDPerfMetricTypes.cc
19 OSDPerfMetricCollector.cc
20 PyFormatter.cc
21 PyModule.cc
22 PyModuleRegistry.cc
23 PyModuleRunner.cc
24 PyOSDMap.cc
25 StandbyPyModules.cc
26 mgr_commands.cc
27 $<TARGET_OBJECTS:mgr_cap_obj>)
28 add_executable(ceph-mgr ${mgr_srcs})
29 target_include_directories(ceph-mgr SYSTEM PRIVATE "${PYTHON_INCLUDE_DIRS}")
30 target_link_libraries(ceph-mgr
31 osdc client heap_profiler
32 global-static ceph-common
33 Boost::python${MGR_PYTHON_VERSION_MAJOR}${MGR_PYTHON_VERSION_MINOR}
34 ${MGR_PYTHON_LIBRARIES} ${CMAKE_DL_LIBS} ${GSSAPI_LIBRARIES})
35 set_target_properties(ceph-mgr PROPERTIES
36 POSITION_INDEPENDENT_CODE ${EXE_LINKER_USE_PIE})
37 install(TARGETS ceph-mgr DESTINATION bin)