1
0
mirror of https://github.com/eclipse/paho.mqtt.cpp.git synced 2025-05-09 03:11:23 +08:00

export dependencies

Signed-off-by: Adam Aposhian <adam.aposhian@fireflyautomatix.com>
This commit is contained in:
Adam Aposhian 2024-02-16 06:37:22 -07:00 committed by fpagliughi
parent f2d7c16413
commit a45f9db800

View File

@ -2,13 +2,18 @@
set(PAHO_BUILD_STATIC @PAHO_BUILD_STATIC@)
set(PAHO_BUILD_SHARED @PAHO_BUILD_SHARED@)
set(PAHO_WITH_SSL @PAHO_WITH_SSL@)
set(PAHO_WITH_MQTT_C @PAHO_WITH_MQTT_C@)
include(CMakeFindDependencyMacro)
find_dependency(Threads REQUIRED)
if(PAHO_WITH_SSL)
find_dependency(OpenSSL REQUIRED)
endif()
find_dependency(eclipse-paho-mqtt-c REQUIRED)
find_dependency(Threads REQUIRED)
if (NOT PAHO_WITH_MQTT_C)
find_dependency(eclipse-paho-mqtt-c REQUIRED)
endif()
if (PAHO_WITH_SSL)
find_dependency(OpenSSL REQUIRED)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/@package_name@Targets.cmake")