-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
18 lines (15 loc) · 936 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FILE(GLOB_RECURSE lib_sources "./src/impl/*.*")
if(IDF_VERSION_MAJOR GREATER_EQUAL 5 AND IDF_VERSION_MINOR GREATER_EQUAL 4)
set(required_components nvs_flash mbedtls esp_wifi esp_http_server esp_http_client esp-tls bootloader_support app_update esp_partition esp_timer spi_flash)
elseif(IDF_VERSION_MAJOR GREATER_EQUAL 5)
set(required_components nvs_flash mbedtls esp_wifi esp_http_server esp_http_client esp-tls bootloader_support app_update esp_partition esp_timer)
else()
set(required_components nvs_flash mbedtls esp_wifi esp_http_server esp_http_client esp-tls bootloader_support app_update)
endif()
idf_component_register(COMPONENT_NAME "ConnectionHelper"
SRCS ${lib_sources}
INCLUDE_DIRS "./src/"
REQUIRES ${required_components})
if(IDF_VERSION_MAJOR LESS 5) # 5+ compiles with c++23.
target_compile_options(${COMPONENT_LIB} PRIVATE -std=gnu++17)
endif()