pico-ssd1306 icon indicating copy to clipboard operation
pico-ssd1306 copied to clipboard

CMakeLists.txt changes to build as self-contained library

Open PDBeal opened this issue 1 year ago • 2 comments

Modified CMakeLists.txt for the project to be built as a self contained library. This allows it to be included in the main project CMakeLists.txt without having to include the pico-sdk libraries or anything additional outside of just including the library.

PDBeal avatar Feb 09 '24 23:02 PDBeal

Upon usage in an existing project, I found I also needed to change this section of CMakeLists.txt to add the framebuffer.cpp file

target_sources(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR}/ssd1306.cpp ${CMAKE_CURRENT_LIST_DIR}/framebuffer/framebuffer.cpp )

PDBeal avatar Feb 10 '24 02:02 PDBeal

Hey, i really appreciate your work! I should be able to test these changes in about a week

Harbys avatar Feb 15 '24 07:02 Harbys