idf_component_register( SRCS "main.cpp" "wifi.cpp" "http_serv.cpp" "ota.cpp" "mqtt.cpp" "device.cpp" "utils.cpp" "leds.cpp" "presets.cpp" "spi_leds.cpp" "screen_leds.cpp" "display.cpp" "patterns/gradient.cpp" "patterns/random.cpp" "patterns/sparkle.cpp" INCLUDE_DIRS "." ) # Build static library, do not build test executables option(BUILD_SHARED_LIBS OFF) option(BUILD_TESTING OFF) # Unfortunately the library performs install and export. Would # have been nice if devs made that an option like BUILD_SHARED_LIBS # and BUILD_TESTING. Override install() and export() to do nothing # instead. function(install) endfunction() function(export) endfunction()