2014-05-07 22:27:00 +00:00
|
|
|
include_directories(${mosquitto_SOURCE_DIR}/lib
|
|
|
|
${STDBOOL_H_PATH} ${STDINT_H_PATH})
|
|
|
|
link_directories(${mosquitto_BINARY_DIR}/lib)
|
|
|
|
|
2014-05-25 10:02:31 +00:00
|
|
|
set(shared_src client_shared.c client_shared.h)
|
|
|
|
|
2014-05-19 21:03:26 +00:00
|
|
|
if (${WITH_SRV} STREQUAL ON)
|
|
|
|
add_definitions("-DWITH_SRV")
|
|
|
|
endif (${WITH_SRV} STREQUAL ON)
|
|
|
|
|
2014-05-25 10:02:31 +00:00
|
|
|
add_executable(mosquitto_pub pub_client.c ${shared_src})
|
|
|
|
add_executable(mosquitto_sub sub_client.c ${shared_src})
|
2014-05-07 22:27:00 +00:00
|
|
|
|
2014-07-22 09:28:55 +00:00
|
|
|
target_link_libraries(mosquitto_pub libmosquitto)
|
|
|
|
target_link_libraries(mosquitto_sub libmosquitto)
|
2014-05-07 22:27:00 +00:00
|
|
|
|
|
|
|
install(TARGETS mosquitto_pub RUNTIME DESTINATION ${BINDIR} LIBRARY DESTINATION ${LIBDIR})
|
|
|
|
install(TARGETS mosquitto_sub RUNTIME DESTINATION ${BINDIR} LIBRARY DESTINATION ${LIBDIR})
|