-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
42 lines (32 loc) · 1.13 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
# Project configuration
cmake_minimum_required(VERSION 3.12)
# Pull in SDK (must be before project)
include(pico_sdk_import.cmake)
include(pico_extras_import_optional.cmake)
project(pico_examples C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(PICO_BOARD pico_w)
# SystemView enable/disable variable
set(SYSVIEW_ENABLED TRUE)
# You can set here the wifi credentials you want to connect with if not defined in environment variables
# set(WIFI_PASSWORD ********)
# set(WIFI_SSID *********)
# FreeRtos kernel path definition
set(FREERTOS_KERNEL_PATH "${CMAKE_CURRENT_LIST_DIR}/Source/lib/FreeRTOS-Kernel")
set(FREERTOS_CONFIG_FILE_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/configs/FreeRTOS-Kernel" CACHE STRING "Local Config")
# Set config files paths to be used
# lwip config files
include(lwip_import.cmake)
# FreeRTOS config files
include_directories("${FREERTOS_CONFIG_FILE_DIRECTORY}")
# Init the pico sdk.
pico_sdk_init()
# Initialize all other external libs & dependencies
# FreeRtos
include(FreeRTOS_Kernel_import.cmake)
if(SYSVIEW_ENABLED)
# SEGGER system view
include(Sysview_import.cmake)
endif ()
# Add the next subdir
add_subdirectory(Source)