Files
FastLED-idf/CMakeLists.txt
2022-09-17 22:28:22 +02:00

40 lines
796 B
CMake

cmake_minimum_required(VERSION 3.5)
set(srcs
"FastLED.cpp"
"bitswap.cpp"
"colorpalettes.cpp"
"colorutils.cpp"
"hsv2rgb.cpp"
"lib8tion.cpp"
"noise.cpp"
"platforms.cpp"
"power_mgt.cpp"
"wiring.cpp"
)
if(CONFIG_FASTLED_METHOD_RMT)
list(APPEND srcs "platforms/esp/32/clockless_rmt_esp32.cpp")
endif()
# everything needs the ESP32 flag, not sure why this won't work
# going to hack by adding the ESP32 define in the h file
#`target_compile_options(${COMPONENT_LIB} PRIVATE "-DESP32")
idf_component_register(
SRCS
${srcs}
INCLUDE_DIRS
.
REQUIRES
arduino-esp32
esp_rom
driver
)
target_compile_options(${COMPONENT_TARGET}
PUBLIC
-DCONFIG_RMT_SUPPRESS_DEPRECATE_WARN
-Wno-volatile
)