eshkrab / fastLED-idf

FastLED port for esp-idf
29 stars 4 forks source link

How to make it build with Cmake? #1

Open Ostpopcorn opened 5 years ago

Ostpopcorn commented 5 years ago

Hello, I have been trying to get this to compile for my project and I'm having no success. It is the default project I'm trying to get working. I'm using the CMake build system, because I want to be able to work in CLion. So logically I want CMakeLists.txt in all folders. My first encounter with CMake is the ESP-IDF so I'm new to it all. I've been looking at other components and the documentation for the build system but all attempts have fallen short. My CMakeLists.txt (in FastLED component) is currently:

set(COMPONENT_ADD_INCLUDEDIRS "include" "include/lib8tion")
set(COMPONENT_SRCS "FastLED.cpp" "bitswap.cpp" "colorpalettes.cpp" "colorutils.cpp" "esp32-hal-gpio.c" "esp32-hal.c" "hsv2rgb.cpp" "lib8tion.cpp" "noise.cpp" "power_mgt.cpp" "wiring.cpp")

register_component()

There are a FastLED folder with all files specified "COMPONENT_SRCS" compiled in the build folder. So it find something. If I build the project it errors out on ../main/main.cpp:14:10: fatal error: FastLED.h: No such file or directory. Any help is or insight much appreciated!