forked from Azure/azure-iot-sdk-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dependencies.cmake
43 lines (35 loc) · 1.3 KB
/
dependencies.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#Copyright (c) Microsoft. All rights reserved.
#Licensed under the MIT license. See LICENSE file in the project root for full license information.
if(${use_installed_dependencies})
if (NOT azure_c_shared_utility_FOUND)
find_package(azure_c_shared_utility REQUIRED CONFIG)
endif ()
if (${use_amqp})
if (NOT uamqp_FOUND)
find_package(uamqp REQUIRED CONFIG)
endif ()
endif ()
if (${use_mqtt})
if (NOT umqtt_FOUND)
find_package(umqtt REQUIRED CONFIG)
endif ()
endif ()
else ()
add_subdirectory(c-utility)
if (${use_amqp})
add_subdirectory(uamqp)
endif ()
if (${use_mqtt})
add_subdirectory(umqtt)
endif ()
if (${use_http})
add_subdirectory(deps/uhttp)
endif ()
endif()
# The use of aziotsharedutil's INTERFACE_INCLUDE_DIRECTORIES is a more flexible replacement
# for the SHARED_UTIL_INC_FOLDER, which is a single path. It is expected that the
# SHARED_UTIL_INC_FOLDER should eventually be eliminated as redundant.
get_target_property(AZURE_C_SHARED_UTILITY_INTERFACE_INCLUDE_DIRECTORIES aziotsharedutil INTERFACE_INCLUDE_DIRECTORIES)
if (AZURE_C_SHARED_UTILITY_INTERFACE_INCLUDE_DIRECTORIES)
include_directories(${AZURE_C_SHARED_UTILITY_INTERFACE_INCLUDE_DIRECTORIES})
endif ()