-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (37 loc) · 1.25 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
#=======================================
#SEAL SQ 2024
#Zero Touch Provisioning Demo with INeS
#IoT / Tools / Provisioning / Firmware Team
#=======================================
#SPDX-License-Identifier: Apache-2.0*/
# Nous voulons un cmake "récent" pour utiliser les dernières fonctionnalités
cmake_minimum_required(VERSION 3.6)
#Project name
project(zeroTouchProvisioning_app VERSION 1.0.0)
add_subdirectory(lib/ines_sdk_c)
#VAULTIC LIB
if(${COMPILATION_MODE} STREQUAL "DEBUG")
add_compile_definitions(INES_SDK_DEBUG)
endif()
include_directories(include)
#VAULTIC LIB
set(HEADERS
"include/aws_demo.h"
)
#source files directory
set(SRCS
"src/aws_demo.c"
"src/main.c"
)
set(MQTT_SRCS
"lib/wolfMQTT/examples/mqttexample.c"
"lib/wolfMQTT/examples/mqttnet.c"
)
# setup wolfMQTT options
set(WOLFMQTT_EXAMPLES "OFF" CACHE BOOL "" FORCE)
add_compile_definitions(ENABLE_MQTT_TLS=YES)
add_subdirectory(lib/wolfMQTT)
add_executable(zeroTouchProvisioning_app ${SRCS} ${HEADERS} ${MQTT_SRCS})
target_link_libraries(zeroTouchProvisioning_app ines_SDK_lib wolfssl wolfmqtt)
target_include_directories(zeroTouchProvisioning_app PUBLIC lib/ines_sdk_c/include)
target_link_directories(zeroTouchProvisioning_app PUBLIC lib/ines_sdk_c/include)