mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
21 lines
530 B
CMake
21 lines
530 B
CMake
# neuron monitor plugin
|
|
set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/plugins")
|
|
|
|
file(COPY ${CMAKE_SOURCE_DIR}/plugins/monitor/monitor.json DESTINATION ${CMAKE_BINARY_DIR}/plugins/schema/)
|
|
|
|
set(src
|
|
monitor.c
|
|
monitor_config.c
|
|
mqtt_handle.c
|
|
)
|
|
|
|
add_library(plugin-monitor SHARED ${src})
|
|
|
|
target_include_directories(plugin-monitor PRIVATE
|
|
${CMAKE_SOURCE_DIR}/include/neuron
|
|
${CMAKE_SOURCE_DIR}/src
|
|
)
|
|
|
|
target_link_libraries(plugin-monitor neuron-base nng)
|
|
target_link_libraries(plugin-monitor ${CMAKE_THREAD_LIBS_INIT})
|