15 lines
433 B
CMake
15 lines
433 B
CMake
# 然后定义monitor静态库并链接依赖
|
|
add_library(monitor_manager STATIC
|
|
src/monitor_factory.cpp
|
|
src/monitor_manager.cpp
|
|
)
|
|
|
|
target_include_directories(monitor_manager PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
target_link_libraries(monitor_manager PRIVATE
|
|
cmvr_es::monitor::disk_monitor
|
|
)
|
|
|
|
add_library(cmvr_es::monitor_manager ALIAS monitor_manager)
|
|
|
|
install(TARGETS monitor_manager LIBRARY DESTINATION lib) |