[CMake] CMake tutorial on Github

paul pfultz2 at yahoo.com
Wed Sep 20 17:46:26 EDT 2017


This looks good, a couple of comments:

- A common misconception for libraries is to generate a Find module for
downstream users. You don't suggest that in the tutorial, but in the section
"Shipping Find Module scripts" it would be a good idea to emphasize that is
for upstream libraries not downstream users.
- It should mention `CMAKE_PREFIX_PATH` as a way to tell cmake where
dependencies are installed, and really should be preferred over modifying a
global "registry".


On Wed, 2017-09-20 at 16:36 +0200, Nagy-Egri Máté Ferenc via CMake wrote:
> Hi fellow CMakers!
>  
> As part of a university course and an attempt to safeguard my time against
> all the one-to-one CMake tutorials I have held thus far, I have created a
> free CMake tutorial available here. It is fairly basic, in its current form
> is more or less just a jump-start guide. I wanted to maintain a consistent
> and modern style of scripting keeping up to date with the latest features.
>  
> If you like it and have collegues that need the first push, feel free to
> point them in this direction. If you feel like contributing, or simply have
> ideas which directions to take next, I am open to both suggestions and PRs.
> I am aware that raw Github is not the best platform for such a writing, but
> it was immensely simple to fire up, I need not worry about hosting, and
> collaborating on the material is a breeze.
>  
> Do keep in mind it is an unofficial tutorial and reflects MY understanding
> of CMake, not those of its day to day developers. (I have looked at the
> codebase on one occasion when I wanted to implement a feature, but it
> would’ve required a complete overhaul of the makefile generators which I did
> not have the capacity to do. If I’ll have the time, I’ll continue working on
> it, some lessons are referred to that are currently non-existent. I do
> intend on writing them sometime.
>  
> Cheers,
> Máté
>  
> -- 
> 
> Powered by www.kitware.com
> 
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.o
> rg/Wiki/CMake_FAQ
> 
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
> 
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensourc
> e/opensource.html
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake


More information about the CMake mailing list