cmvr-es/src/monitor/CMakeLists.txt

16 lines
418 B
CMake
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 首先添加子目录确保disk_monitor目标被定义
add_subdirectory(diskmonitor)
# 然后定义monitor静态库并链接依赖
add_library(monitor STATIC
monitor_factory.cpp
monitor_manager.cpp
)
target_include_directories(monitor PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(monitor PRIVATE
cmvr_es::monitor::disk_monitor
)
add_library(cmvr_es::monitor ALIAS monitor)