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

CMake Targets for FetchContent #217

Merged
merged 5 commits into from
Jun 18, 2024
Merged

CMake Targets for FetchContent #217

merged 5 commits into from
Jun 18, 2024

Conversation

FlorianXXIV
Copy link
Contributor

I tried to use FetchContent for CMake to install graaflib but it didn't work, after some testing I decided to create a fork.

I made a new interface with add_library and added the include directory over target_include_directories, when using FetchContent with these modifications, including graaflib worked.

I also made sure I could build and test the project so that this didn't break stuff, and I got a build error telling me that the tarjan test used std::sort as an unknown target, I added an include for in tarjan.h to make the project build and the tests ran at 100%

I'm not really acquainted with how you properly write CMakeList files so if there are any issues feel free to tell me.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi there! Thank you for creating your first pull-request on the Graaf library :)

@FlorianXXIV FlorianXXIV marked this pull request as draft June 11, 2024 19:16
@FlorianXXIV FlorianXXIV marked this pull request as ready for review June 11, 2024 19:19
@FlorianXXIV
Copy link
Contributor Author

I forgot to add a lable when creating the request and now It seems I can't do that afterwards. Sorry about that

Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.57%. Comparing base (c096baf) to head (e40efd1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #217   +/-   ##
=======================================
  Coverage   99.57%   99.57%           
=======================================
  Files          56       56           
  Lines        2586     2586           
  Branches      135      135           
=======================================
  Hits         2575     2575           
  Misses         11       11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

FlorianXXIV and others added 2 commits June 18, 2024 18:57
Update to newest version of graaf
…algorithm> wasn't included. I added the include to make the project build."

This reverts commit 1662c21.
Copy link
Owner

@bobluppes bobluppes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @FlorianXXIV, thanks for adding this, LGTM!

In the future I think we should add a test in the release CI to ensure that the project can be included using FetchContent. In general I would see this as a larger topic as the installation workflow for users could be streamlined 😅

This is a really nice step in that direction though! Please let me know if you continue to encounter issues.

@bobluppes bobluppes merged commit d1a7873 into bobluppes:main Jun 18, 2024
7 checks passed
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