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