catchorg / Clara

A simple to use, composable, command line parser for C++ 11 and beyond
Boost Software License 1.0
650 stars 67 forks source link

Provide CMake INTERFACE and INSTALL #44

Open samaursa opened 6 years ago

samaursa commented 6 years ago

It would be nice to use the newer CMake INTERFACE option in conjunction with add_library and the appropriate install entries in the CMakeLists.txt.

It would also be nice to add the tests explicitly using add_test so that ctest can be run easily.

MikeGitb commented 5 years ago

It would be nice to use the newer CMake INTERFACE option in conjunction with add_library and the appropriate install entries in the CMakeLists.txt.

Please yes. It makes working with cmake and package management so much easier if all dependencies follow standard cmake best practices.

And once you do this: Please make #incluude <clara/clara.h> the default way to use it (just as with catch).