Re: [CMake] externalproject_add and generating sources

2017-01-29 Thread David Jobet
Oh ok, I see how it works, it makes sense, but I'm somehow disappointed : in order to use it, I'm going to have to change my own project while I originally thought it was going to be a kind of FindXXX on steroid... I'll give it a try though, tx for pointing it out. David Le 26 janvier 2017 13:0

Re: [CMake] externalproject_add and generating sources

2017-01-29 Thread David Jobet
Hello, Yes, main reason is I had to hack FindProtobuf.cmake to make our existing project compile. Also since I need to make it "installable", I had to add some stuff to have the binaries and header installed automatically when referenced. The latter reason led me to experiment with ExternalProje

Re: [CMake] externalproject_add and generating sources

2017-01-26 Thread Michael Ellery
> On Jan 26, 2017, at 1:23 AM, David Jobet wrote: > > Hello, > > suppose I want to use protobuf and integrate it in my project with > externalproject_add. (actually, I just have precompiled binaries and libs + > header files, I don't have the full sources) > Once the project has been 'built'

Re: [CMake] externalproject_add and generating sources

2017-01-26 Thread Nicholas Braden
You'll also want to build your own project with ExternalProject, and use the DEPENDS option to control build order. This ensures that all dependencies are fully installed before your own project is even configured. The project with all the ExternalProject calls is typically called a superbuild, and

[CMake] externalproject_add and generating sources

2017-01-26 Thread David Jobet
Hello, suppose I want to use protobuf and integrate it in my project with externalproject_add. (actually, I just have precompiled binaries and libs + header files, I don't have the full sources) Once the project has been 'built' (actually, installed by a custom rpm-like tool to a shared path),