[CMake] creating a library -- folder layout??

Eric Noulard eric.noulard at gmail.com
Tue Sep 13 18:12:24 EDT 2011


2011/9/13 Cristobal Navarro <axischire at gmail.com>:
> hello everyone!
> this is my first post on the mailing list
> i am making a shared library
> i have everything configured properly so that cmake creates de makefile
> scripts as espected
> at the moment cmake is installing my library by default into:
> /usr/local/lib/mylib.so.0.1 (and the symlink mylib.so)
> /usr/local/include/mylib.h
> my question is, how can i make it to install into it's own folder?? so
> everything lays inside
> /usr/local/mylib-0.1/...

use the DESTINATION argument of the INSTALL CMake command.
and/or read the whole doc of the INSTALL CMake command.

i.e.

install(TARGETS mylib DESTINATION mylib-0.1)

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list