Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

PDBeal
Copy link

@PDBeal PDBeal commented Feb 9, 2024

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
Copy link
Author

PDBeal commented Feb 10, 2024

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
Copy link
Owner

Harbys commented Feb 15, 2024

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