]> git.proxmox.com Git - ceph.git/blob - ceph/src/mgr/CMakeLists.txt
b11c40c42bc922e20c9622e86d4c4a77dbe5c422
[ceph.git] / ceph / src / mgr / CMakeLists.txt
1 add_library(mgr_cap_obj OBJECT
2 MgrCap.cc)
3
4 if(WITH_MGR)
5 set(mgr_srcs
6 ${CMAKE_SOURCE_DIR}/src/ceph_mgr.cc
7 ${CMAKE_SOURCE_DIR}/src/mon/PGMap.cc
8 ${CMAKE_SOURCE_DIR}/src/mon/ConfigMap.cc
9 ActivePyModule.cc
10 ActivePyModules.cc
11 BaseMgrModule.cc
12 BaseMgrStandbyModule.cc
13 ClusterState.cc
14 DaemonHealthMetricCollector.cc
15 DaemonKey.cc
16 DaemonServer.cc
17 DaemonState.cc
18 Gil.cc
19 Mgr.cc
20 mgr_perf_counters.cc
21 MgrStandby.cc
22 MetricCollector.cc
23 OSDPerfMetricTypes.cc
24 OSDPerfMetricCollector.cc
25 MDSPerfMetricTypes.cc
26 MDSPerfMetricCollector.cc
27 PyFormatter.cc
28 PyUtil.cc
29 PyModule.cc
30 PyModuleRegistry.cc
31 PyModuleRunner.cc
32 PyOSDMap.cc
33 StandbyPyModules.cc
34 mgr_commands.cc
35 $<TARGET_OBJECTS:mgr_cap_obj>)
36 add_executable(ceph-mgr ${mgr_srcs})
37 target_compile_definitions(ceph-mgr PRIVATE PY_SSIZE_T_CLEAN)
38 if(WITH_LIBCEPHSQLITE)
39 target_link_libraries(ceph-mgr cephsqlite SQLite3::SQLite3)
40 endif()
41 target_include_directories(ceph-mgr PRIVATE
42 $<TARGET_PROPERTY:RocksDB::RocksDB,INTERFACE_INCLUDE_DIRECTORIES>)
43 target_link_libraries(ceph-mgr
44 osdc client heap_profiler
45 global-static ceph-common
46 Boost::python${MGR_PYTHON_VERSION_MAJOR}${MGR_PYTHON_VERSION_MINOR}
47 Python3::Python ${CMAKE_DL_LIBS} ${GSSAPI_LIBRARIES})
48 set_target_properties(ceph-mgr PROPERTIES
49 POSITION_INDEPENDENT_CODE ${EXE_LINKER_USE_PIE})
50 install(TARGETS ceph-mgr DESTINATION bin)
51 endif()