2021-08-06 17:12:16 +02:00
|
|
|
set(headers
|
|
|
|
src/esphttpdutils.h
|
2021-09-18 18:01:50 +02:00
|
|
|
src/esphttpstatuscodes.h
|
|
|
|
src/htmlbuilder.h
|
2021-08-06 17:12:16 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sources
|
|
|
|
src/esphttpdutils.cpp
|
2021-09-18 18:01:50 +02:00
|
|
|
src/esphttpstatuscodes.cpp
|
2021-08-06 17:12:16 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
set(dependencies
|
|
|
|
esp_http_server
|
|
|
|
|
|
|
|
cpputils
|
|
|
|
espchrono
|
|
|
|
espcpputils
|
|
|
|
)
|
|
|
|
|
|
|
|
idf_component_register(
|
|
|
|
INCLUDE_DIRS
|
|
|
|
src
|
|
|
|
SRCS
|
|
|
|
${headers}
|
|
|
|
${sources}
|
|
|
|
REQUIRES
|
|
|
|
${dependencies}
|
|
|
|
)
|
|
|
|
|
2023-04-27 14:31:21 +02:00
|
|
|
set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 23)
|
|
|
|
|
2021-08-06 17:12:16 +02:00
|
|
|
target_compile_options(${COMPONENT_TARGET}
|
|
|
|
PRIVATE
|
|
|
|
-fstack-reuse=all
|
|
|
|
-fstack-protector-all
|
|
|
|
-Wno-unused-function
|
|
|
|
-Wno-deprecated-declarations
|
|
|
|
-Wno-missing-field-initializers
|
|
|
|
-Wno-parentheses
|
|
|
|
)
|