forexample/package-example

Automating install of third parties packages

sancelot opened this issue · 3 comments

I would like to setup third parties project like proposed in this example.

However, I would like that the setup of these third parties package are done by my main project cmake.

If the third party package is not there, then install it .... (most of them are git repository based)

have you got an idea on how to proceed ?

ruslo commented

I'm not sure I undestand the question, but I think it's out of scope of this example, there is no third party involved here. As for the automation of third party install you can check Hunter. If you think about some general scenario probably question/discussion fits better the CGold tutorials (e.g. as part of this WIP section).

@sancelot You could take a look at https://github.com/Crascit/DownloadProject for downloading an external project's source at CMake's configure step.

ruslo commented

Discussion is out of scope of this example, closing.