Skip to content

CMakeLists.txt changes to build as self-contained library#19

Open
PDBeal wants to merge 10 commits into
Harbys:masterfrom
PDBeal:master
Open

CMakeLists.txt changes to build as self-contained library#19
PDBeal wants to merge 10 commits into
Harbys:masterfrom
PDBeal:master

Conversation

@PDBeal

@PDBeal PDBeal commented Feb 9, 2024

Copy link
Copy Markdown

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

PDBeal commented Feb 10, 2024

Copy link
Copy Markdown
Author

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 )

@Harbys

Harbys commented Feb 15, 2024

Copy link
Copy Markdown
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants