-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
base: master
Are you sure you want to change the base?
CMake - Add one CMakeLists per package #8265
Conversation
There was a problem hiding this 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.
this version is copy-pastable
Instead of manually creating cmake scripts, can't we create custom targets in case we have |
I don't like much that option, because it forces to use the top-level CMakeLists, while the solution I suggested is "package-centered" |
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.