Skip to content

Commit

Permalink
MQTTV5Client cmake definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
CIPop committed Jul 24, 2023
1 parent a3444a2 commit 8e9a70d
Show file tree
Hide file tree
Showing 3 changed files with 954 additions and 4 deletions.
13 changes: 9 additions & 4 deletions MQTTClient-C/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@

file(GLOB SOURCES "*.c" "linux/*.c")

add_library(
paho-embed-mqtt3cc SHARED
${SOURCES}
)
add_library(paho-embed-mqtt3cc SHARED ${SOURCES})
install(TARGETS paho-embed-mqtt3cc DESTINATION /usr/lib)
target_include_directories(paho-embed-mqtt3cc PRIVATE "linux")
target_link_libraries(paho-embed-mqtt3cc paho-embed-mqtt3c)
target_compile_definitions(paho-embed-mqtt3cc PRIVATE
MQTTCLIENT_PLATFORM_HEADER=MQTTLinux.h MQTTCLIENT_QOS2=1)

file(GLOB SOURCES "*.c" "V5/*.c" "linux/*.c")
add_library(paho-embed-mqtt5cc SHARED ${SOURCES})
install(TARGETS paho-embed-mqtt5cc DESTINATION /usr/lib)
target_include_directories(paho-embed-mqtt5cc PRIVATE "linux")
target_link_libraries(paho-embed-mqtt5cc paho-embed-mqtt5c)
target_compile_definitions(paho-embed-mqtt5cc PRIVATE
MQTTCLIENT_PLATFORM_HEADER=MQTTLinux.h MQTTCLIENT_QOS2=1 MQTTV5)
Loading

0 comments on commit 8e9a70d

Please sign in to comment.