mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:24:29 +02:00
Core symbols needed by plugins are now properly linked to their objects * Remove link_directories() call: This specification is not necessary for our own libraries as cmake shares this information over the targets. If needed they should be specified target specific, like done for the external DLT library. Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
23 lines
581 B
CMake
23 lines
581 B
CMake
set (PLUGIN_NAME mosquitto_plugin_event_stats)
|
|
|
|
add_library(${PLUGIN_NAME} MODULE
|
|
${PLUGIN_NAME}.c
|
|
)
|
|
|
|
target_include_directories(${PLUGIN_NAME} PRIVATE
|
|
"${STDBOOL_H_PATH}"
|
|
"${STDINT_H_PATH}"
|
|
"${mosquitto_SOURCE_DIR}"
|
|
"${mosquitto_SOURCE_DIR}/include"
|
|
)
|
|
|
|
set_target_properties(${PLUGIN_NAME} PROPERTIES
|
|
PREFIX ""
|
|
POSITION_INDEPENDENT_CODE 1
|
|
)
|
|
|
|
target_link_libraries(${PLUGIN_NAME} PRIVATE mosquitto)
|
|
|
|
# Don't install, these are example plugins only.
|
|
#install(TARGETS ${PLUGIN_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|