Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMake deploying required libraries

Tags:

cmake

Is it possible to get CMake to gather up all the package libraries used during compilation, recursively grab their required libraries, and then put them all in a single directory?

As an example if my application requires gtk it would grab glib and its required libraries libiconv, gettext, and libffi.

like image 221
Jason Smith Avatar asked Nov 01 '22 21:11

Jason Smith


1 Answers

You can use the GetPrerequesites CMake module. See here for more information

like image 137
Dimitri Merejkowsky Avatar answered Nov 13 '22 05:11

Dimitri Merejkowsky