Files
esphttpdutils/CMakeLists.txt

41 lines
694 B
CMake

set(headers
src/esphttpdutils.h
src/esphttpstatuscodes.h
src/htmlbuilder.h
)
set(sources
src/esphttpdutils.cpp
src/esphttpstatuscodes.cpp
)
set(dependencies
esp_http_server
cpputils
espchrono
espcpputils
)
idf_component_register(
INCLUDE_DIRS
src
SRCS
${headers}
${sources}
REQUIRES
${dependencies}
)
set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 23)
target_compile_options(${COMPONENT_TARGET}
PRIVATE
-fstack-reuse=all
-fstack-protector-all
-Wno-unused-function
-Wno-deprecated-declarations
-Wno-missing-field-initializers
-Wno-parentheses
)