Files
DHT-sensor-library/CMakeLists.txt

36 lines
534 B
CMake

set(headers
DHT.h
DHT_U.h
)
set(sources
DHT.cpp
DHT_U.cpp
)
set(dependencies
arduino-esp32
Adafruit_Sensor
espcpputils
)
idf_component_register(
INCLUDE_DIRS
.
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
)