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 - Add one CMakeLists per package #8265

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

Conversation

janetournois
Copy link
Member

Summary of Changes

To be able to test a full package (tests, examples, and if they exist benchmark and demo) at once, for example using ctest (or simply compiling in visual studio), I suggest to add one CMakeLists per package, at the root of the package.

This PR introduces two such CMakeLists, which I think are very handy.

@janetournois janetournois added this to the 6.1-beta milestone Jun 7, 2024
Copy link
Member

@lrineau lrineau left a comment

Choose a reason for hiding this comment

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

Nice addition.

Note that we will have to do something about those CMakeFiles.txt during the construction of the internal release. I add a TODO for that reason.

Mesh_3/CMakeLists.txt Outdated Show resolved Hide resolved
Mesh_3/CMakeLists.txt Outdated Show resolved Hide resolved
Mesh_3/CMakeLists.txt Outdated Show resolved Hide resolved
Poisson_surface_reconstruction_3/CMakeLists.txt Outdated Show resolved Hide resolved
@lrineau lrineau added the TODO label Jun 7, 2024
@janetournois
Copy link
Member Author

@lrineau for "benchmark" I suggest 808fa60

@sloriot
Copy link
Member

sloriot commented Sep 17, 2024

Instead of manually creating cmake scripts, can't we create custom targets in case we have CGAL_ENABLE_TESTING=ON?

@janetournois
Copy link
Member Author

I don't like much that option, because it forces to use the top-level CMakeLists, while the solution I suggested is "package-centered"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants