forked from espressif/esp-aws-iot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (33 loc) · 1.04 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
set(libs ${CMAKE_CURRENT_LIST_DIR}/aws-iot-device-sdk-embedded-C/libraries)
set(demos ${CMAKE_CURRENT_LIST_DIR}/aws-iot-device-sdk-embedded-C/demos)
include(${libs}/standard/coreMQTT/mqttFilePaths.cmake)
include(${libs}/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake)
include(${libs}/aws/device-shadow-for-aws-iot-embedded-sdk/shadowFilePaths.cmake)
include(${libs}/standard/coreJSON/jsonFilePaths.cmake)
include(${demos}/logging-stack/logging.cmake)
set(COMPONENT_ADD_INCLUDEDIRS
${LOGGING_INCLUDE_DIRS}
${MQTT_INCLUDE_PUBLIC_DIRS}
${BACKOFF_ALGORITHM_INCLUDE_PUBLIC_DIRS}
${SHADOW_INCLUDE_PUBLIC_DIRS}
${JSON_INCLUDE_PUBLIC_DIRS}
"port/include"
)
set(COMPONENT_SRCS
${MQTT_SOURCES}
${MQTT_SERIALIZER_SOURCES}
${BACKOFF_ALGORITHM_SOURCES}
${SHADOW_SOURCES}
${JSON_SOURCES}
"port/clock.c"
"port/network_mbedtls_wrapper.c"
)
set(COMPONENT_REQUIRES
"mbedtls"
"log.c"
)
register_component()
list(APPEND EXTRA_C_FLAGS_LIST
-Wno-type-limits
)
component_compile_options(${EXTRA_C_FLAGS_LIST})