[CMake] Install of library sub-project prior to building application

Alexander Neundorf a.neundorf-work at gmx.net
Wed Jun 17 18:19:25 EDT 2009


On Wednesday 17 June 2009, Richard Offer wrote:
> (probably a newbie question, but google didn't show anything relevant and
> answered)
>
>
> I have a project that includes a third party library (Poco), and then my
> application that links to it. Everything is built from a single top level
> CMakeLists.txt file. Poco is includes using add_subdirectory(), the
> application with include().
>
>
> However I need to run the install phase of Poco before the application can
> link to the library - its the install phase of Poco that copies the headers
> and libraries from all its many sub-directories into the single
> LIBRARY_OUTPUT_PATH.

Why do you need to install poco first before building the rest ?
You can link also to the uninstalled libraries and you can also set the 
include dirs to point to the source directories.

Alex


More information about the CMake mailing list