[CMake] Beginners Guide to Cmake and Modern Cmake

2018-07-26 Thread Space
Dear Cmake world, I am wanting to learn how to use Cmake correctly and I would like to implement Modern Cmake (the latest version and techniques). Currently I have a project that was intended for use on windows machine but I want to run/develop it on Mac and am also interested to make it overall

Re: [CMake] Fwd: GLOB_RECURSE

2018-07-26 Thread Michael Hennebry
I finally found the ellipses. On Wed, Jul 25, 2018 at 9:48 PM, J. Caleb Wherry wrote: > Latest CMake documentation can be found here: > https://cmake.org/cmake/help/latest/command/file.html?highlight=glob_recurse#glob-recurse That is what I was using, albeit badly. > As for your issue, you are

Re: [CMake] How do I use install() with targets that might not be built?

2018-07-26 Thread Francis Giraldeau
To customize the build and install, I would suggest to use an install(TRAGET) wrapper for each target. It allows to define an option for each of them. * The list of targets must be recorded in a global property. * The install option is constructed using the target name * call generate_install_conf

[CMake] order of includes seems wrong (or please help me understand)

2018-07-26 Thread Mario Emmenlauer
Dear CMake users and developers, I've just discovered a build problem that comes from a wrong order of includes. I would know the correct order, but I am unable to instruct CMake to use the order I need. Here is a toy example that I tested with cmake 3.12.0: cmake_minimum_required(VERSION