2021-01-12 22:51:33 +00:00
|
|
|
include_directories(${mosquitto_SOURCE_DIR} ${mosquitto_SOURCE_DIR}/include
|
2021-04-01 20:53:13 +00:00
|
|
|
${OPENSSL_INCLUDE_DIR} ${STDBOOL_H_PATH} ${STDINT_H_PATH})
|
2021-01-12 22:51:33 +00:00
|
|
|
|
2021-04-06 19:15:08 +00:00
|
|
|
add_library(mosquitto_auth_by_ip MODULE mosquitto_auth_by_ip.c)
|
2021-01-12 22:51:33 +00:00
|
|
|
set_target_properties(mosquitto_auth_by_ip PROPERTIES
|
|
|
|
POSITION_INDEPENDENT_CODE 1
|
|
|
|
)
|
|
|
|
set_target_properties(mosquitto_auth_by_ip PROPERTIES PREFIX "")
|
|
|
|
|
|
|
|
# Don't install, these are example plugins only.
|
|
|
|
#install(TARGETS mosquitto_auth_by_ip RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|