[CMake] Modern superbuild template including support for

Klaim - Joël Lamotte mjklaim at gmail.com
Thu Aug 20 18:37:01 EDT 2015


On 20 August 2015 at 22:11, Knox, Kent <Kent.Knox at amd.com> wrote:

> I can vouch that the superbuild project works fine both for visual studio
> and for xcode.  Using visual studio as an example, you generate a visual
> studio solution which downloads and compiles all dependencies, inclulding
> the library.  After the initial build, you just use the solution file
> generated for the library thereafter.  I've not tested QT Creater, but I'll
> see if I can verify your difficulties next week.
>

I had major pains managing the dependencies of my main project via
copy/pasting specific versions of the sources of my dependencies in a
dependency repository.
(which don't work well when updating and on other platforms than windows)
Also note that not all my dependencies uses CMake so some of these are
major pains.
This version worked well enough until I tried to make it work on linux and
I also have plans to change some dependencies and it's a major pain to
update correctly.
There were other issues but less important than that.

So now I am trying to setup the something similar but with
ExternalProject_Add() :
https://bitbucket.org/klaim/netrush-dependencies-cmake
This one is a work in progress but the dependencies currently does build on
Windows and Linux.
What's missing:
 - I want to setup package config files in the install directory, but I am
having major troubles with this because;
 - the package file will need to provide imported targets to my
dependencies under a specific namespace (like Qt does);
 - gtest and protobuf do not have install targets ( ;O; ) so I have to
setup more stuffs so that the package config will have the right paths;
 - once this dependencies install works with my current version of my
project, I will need to

My experience so far: the copy pasting strategy ends up easier to setup
than using externaldependencies, because you don't have to think with
2-steps download-build-instal&link;
I am tempted to stop my efforts on this now, but I still have a few bits of
energy left. Also I seem close to the end and couldn't evaluate the actual
benefits (which I first assumed
would have been ease of first-setup/update/patch/totally-change).
I also can't pay someone to setup and manage the dependencies, like we have
in the company where I work (so far I was talking about my biggest personal
project which is still quite massive).
Any help is welcome of course, if you have time to kill on this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150821/1d17b0ce/attachment.html>


More information about the CMake mailing list