generated from esp-cpp/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (29 loc) · 1.05 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
# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# add the component directories that we want to use
set(EXTRA_COMPONENT_DIRS
"components/"
"components/espp/components/"
"components/esp-protocols/components"
)
# set the hal component to use based on the target
if(IDF_TARGET STREQUAL "esp32")
#append the components that we want to use
set(HAL_COMPONENTS "wrover-kit")
message(WARNING "ESP32 target, using components: ${HAL_COMPONENTS}")
elseif(IDF_TARGET STREQUAL "esp32s3")
set(HAL_COMPONENTS "t-deck esp-box")
message(WARNING "ESP32-S3 target, using components: ${HAL_COMPONENTS}")
else()
message(FATAL_ERROR "Unsupported target: ${IDF_TARGET}")
endif()
set(
COMPONENTS
"main esptool_py driver lwip button logger lvgl mdns socket task wifi gui nvs ${HAL_COMPONENTS}"
CACHE STRING
"List of components to include"
)
project(wireless-debug-display)
set(CMAKE_CXX_STANDARD 20)