[CMake] Also install dependent libraries

Tyler Roscoe tyler at cryptio.net
Fri Jun 26 19:58:41 EDT 2009


Make sure you reply to the list so others can help.

On Fri, Jun 26, 2009 at 09:16:20PM +0200, Jean-Pierre Bergamin wrote:
> Am 26.06.2009 16:34, schrieb Tyler Roscoe:
> >On Fri, Jun 26, 2009 at 10:50:27AM +0200, Jean-Pierre Bergamin wrote:
> >   
> >>When installing the project from the top level directory, everything is
> >>fine. But although dependent libs are built when calling "make install"
> >>i.e. in the server directory, they don't get installed. Is there a way
> >>to also install these dependent libs?
> >>     
> >
> >Do you have install() commands for those dependent libraries? What do
> >they look like?
> >   
> These are normal install commands:
> 
>         install(TARGETS mylib
>                 LIBRARY DESTINATION lib)
> 
> And the libraries get installed when calling "make install" from the 
> top-level directory, but not when inside i.e. the "myproject/server" 
> directory.

Do your subdirectories all have project() declarations?

Are there rules getting written into the cmake_install.cmake (or
whatever that file is called) in the subdirectories' binary directories?

What do the relevant parts of the output from make VERBOSE=1 look like?

tyler


More information about the CMake mailing list