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

Simplify CMake test code #1164

Closed
wants to merge 2 commits into from
Closed

Simplify CMake test code #1164

wants to merge 2 commits into from

Conversation

jpr42
Copy link
Contributor

@jpr42 jpr42 commented Oct 23, 2024

  • Use FetchContent to grab googletest
  • Simplify find_package testing so it's done as a part of ctest
  • Use the GTest::gtest_main target directly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is now done when ctest is run. Which IMO is much more elegant.

@jpr42 jpr42 force-pushed the cmake-cleanup branch 3 times, most recently from e11cd3d to ac38f88 Compare October 23, 2024 23:18
- Use FetchContent to grab googletest
- Simplify find_package testing so it's done as a part of ctest
- Use the GTest::gtest_main target directly
@jpr42 jpr42 force-pushed the cmake-cleanup branch 2 times, most recently from f964c96 to 99c807e Compare October 23, 2024 23:31
Currently testing will only run on pushes to main. This change
allows testing on any branch which simplfies testing for forks.
@jpr42 jpr42 closed this Oct 23, 2024
@jpr42 jpr42 deleted the cmake-cleanup branch October 23, 2024 23:39
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.

1 participant