diff --git a/CMakeLists.txt b/CMakeLists.txt index 7dbc3ad..f028603 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,4 +7,29 @@ set(sources src/espchrono_impl.cpp ) -idf_component_register(INCLUDE_DIRS src SRCS ${headers} ${sources} REQUIRES freertos esp_system cpputils date) +set(dependencies + freertos + esp_system + cpputils + date +) + +idf_component_register( + INCLUDE_DIRS + src + SRCS + ${headers} + ${sources} + REQUIRES + ${dependencies} +) + +target_compile_options(${COMPONENT_TARGET} + PRIVATE + -fstack-reuse=all + -fstack-protector-all + -Wno-unused-function + -Wno-deprecated-declarations + -Wno-missing-field-initializers + -Wno-parentheses +)