-
Notifications
You must be signed in to change notification settings - Fork 13
/
CMakeLists.txt
76 lines (59 loc) · 1.47 KB
/
CMakeLists.txt
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Copyright (c) 2021 Nantis GmbH.
# Copyright (c) 2021 Arm Limited.
# SPDX-License-Identifier: Apache-2.0
# coreMQTT
include(coreMQTT/mqttFilePaths.cmake)
add_library(coreMQTT INTERFACE)
target_include_directories(coreMQTT
INTERFACE
${MQTT_INCLUDE_PUBLIC_DIRS}
source/config
)
target_sources(coreMQTT
INTERFACE
${MQTT_SOURCES}
${MQTT_SERIALIZER_SOURCES}
)
# Device-Shadow-for-AWS-IoT-embedded-sdk
include(Device-Shadow-for-AWS-IoT-embedded-sdk/shadowFilePaths.cmake)
add_library(Device-Shadow-for-AWS-IoT-embedded-sdk INTERFACE)
target_include_directories(Device-Shadow-for-AWS-IoT-embedded-sdk
INTERFACE
${SHADOW_INCLUDE_PUBLIC_DIRS}
source/config
)
target_sources(Device-Shadow-for-AWS-IoT-embedded-sdk
INTERFACE
${SHADOW_SOURCES}
)
# coreJSON
include(coreJSON/jsonFilePaths.cmake)
add_library(coreJSON INTERFACE)
target_include_directories(coreJSON
INTERFACE
${JSON_INCLUDE_PUBLIC_DIRS}
source/config
)
target_sources(coreJSON
INTERFACE
${JSON_SOURCES}
)
# mbed-client-for-aws
add_library(mbed-client-for-aws INTERFACE)
target_include_directories(mbed-client-for-aws
INTERFACE
include
include/AWSClient
)
target_sources(mbed-client-for-aws
INTERFACE
source/AWSClient.cpp
)
target_link_libraries(mbed-client-for-aws
INTERFACE
coreMQTT
coreJSON
Device-Shadow-for-AWS-IoT-embedded-sdk
mbed-os
mbed-netsocket
)