Add Mosquitto and Mosquittopp library detection
parent
2b8fee80de
commit
81cdda7def
|
@ -432,8 +432,28 @@ if(NOT ZM_NO_PRCE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT ZM_NO_MQTT)
|
||||||
|
find_package(Mosquitto)
|
||||||
|
if(MOSQUITTO_FOUND)
|
||||||
|
include_directories(${MOSQUITTO_INCLUDE_DIRS})
|
||||||
|
list(APPEND ZM_BIN_LIBS "${MOSQUITTO_LIBRARIES}")
|
||||||
|
set(optlibsfound "${optlibsfound} Mosquitto")
|
||||||
|
else()
|
||||||
|
set(optlibsnotfound "${optlibsnotfound} Mosquitto")
|
||||||
|
endif (MOSQUITTO_FOUND)
|
||||||
|
|
||||||
|
find_package(Mosquittopp)
|
||||||
|
if(MOSQUITTOPP_FOUND)
|
||||||
|
include_directories(${MOSQUITTOPP_INCLUDE_DIRS})
|
||||||
|
list(APPEND ZM_BIN_LIBS "${MOSQUITTOPP_LIBRARIES}")
|
||||||
|
set(optlibsfound "${optlibsfound} Mosquittopp")
|
||||||
|
else()
|
||||||
|
set(optlibsnotfound "${optlibsnotfound} Mosquittopp")
|
||||||
|
endif (MOSQUITTOPP_FOUND)
|
||||||
|
endif()
|
||||||
|
|
||||||
# mysqlclient (using find_library and find_path)
|
# mysqlclient (using find_library and find_path)
|
||||||
find_library(MYSQLCLIENT_LIBRARIES mysqlclient PATH_SUFFIXES mysql)
|
find_library(MYSQLCLIENT_LIBRARIES mysqlclient PATH_SUFFIXES mysql)
|
||||||
if(MYSQLCLIENT_LIBRARIES)
|
if(MYSQLCLIENT_LIBRARIES)
|
||||||
set(HAVE_LIBMYSQLCLIENT 1)
|
set(HAVE_LIBMYSQLCLIENT 1)
|
||||||
list(APPEND ZM_BIN_LIBS "${MYSQLCLIENT_LIBRARIES}")
|
list(APPEND ZM_BIN_LIBS "${MYSQLCLIENT_LIBRARIES}")
|
||||||
|
|
Loading…
Reference in New Issue