-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
35 lines (29 loc) · 1012 Bytes
/
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
cmake_minimum_required(VERSION 3.15)
set (CMAKE_C_COMPILER_FORCED true)
project(GD32W51X LANGUAGES C ASM)
set(CONFIG_TZ_ENABLED OFF CACHE BOOL "Whether to enable trustzone")
set(CONFIG_OS "FREERTOS" CACHE STRING "Select which OS")
set(CONFIG_STATIC_LIB_BUILDED ON CACHE BOOL "Whether static lib builded, like wlan, iperf3 lib")
include(${CMAKE_TOOLCHAIN_FILE})
toolchain_reload_compiler()
include_directories(
config
NSPE/Firmware/CMSIS/ARM/cmsis
NSPE/Firmware/CMSIS/GD/GD32W51x/Include
NSPE/Firmware/CMSIS/DSP_Lib_v1.6.0/include
NSPE/WIFI_IOT/app
NSPE/WIFI_IOT/bsp
NSPE/WIFI_IOT/common
MBL/platform
ROM-EXPORT/platform
ROM-EXPORT/source
ROM-EXPORT/mbedtls-2.17.0-rom/include
)
if (CONFIG_TZ_ENABLED)
add_subdirectory(MBL/source)
include_directories(MBL/source)
else()
include_directories(MBL/source_ns)
add_subdirectory(MBL/source_ns)
endif()
add_subdirectory(NSPE)