I have my toolchain set up for the pico under debian.
All is working and i have a blink project set up and tested.
So far so good.
Was going to attempt to port the u8g2 library to the pico for a specific LCD i use.
However, the CMake nightmare is making this hard.
Is anyone here familliar with the U8G2 LCD library and CMake that might help?
Ie i do have this in my current blink CMakeLists.txt:
Code: Select all
include(/home/pi/pico/pico-sdk/pico_sdk_init.cmake) project(main) pico_sdk_init() add_executable(main main.c) target_link_libraries(main pico_stdlib) pico_add_extra_outputs(main)
How can i make this work? Never worked with CMake before.
Checking around for examples, there are hundreds of different ways, and different versions.
Any help or pointers regarding this is greatly appreciated!