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

2011-09-13 Thread Cristobal Navarro
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/...

thanks in advance
best regards
Cristobal
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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

2011-09-13 Thread Eric Noulard
2011/9/13 Cristobal Navarro :
> 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
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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

2011-09-14 Thread Cristobal Navarro
thanks Eric!

Cristobal

On Tue, Sep 13, 2011 at 7:12 PM, Eric Noulard wrote:

> 2011/9/13 Cristobal Navarro :
> > 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
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake