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

Add CMake install targets and package discovery #2275

Merged
merged 5 commits into from
Sep 30, 2023
Merged

Add CMake install targets and package discovery #2275

merged 5 commits into from
Sep 30, 2023

Conversation

j0057
Copy link
Contributor

@j0057 j0057 commented Sep 30, 2023

Fixes some warnings about missing minimum CMake version and project statements.
Also simplifies the CMakeLists.txt by using file globbing for the COMPONENT_SRCS
variable instead of naming each file individually.

Adds targets for installing header files to <prefix>/include and the static
library to <prefix>/lib.

Finally, adds a file to make CMake package discovery work, so that after having
built and installed u8g2, a CMake-based project can use u8g2 by using the
find_package CMake command.

References:

@olikraus olikraus merged commit 9592615 into olikraus:master Sep 30, 2023
@j0057 j0057 deleted the add-cmake-install branch October 20, 2023 19:52
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