[CMake] uninstall target & libraries

Pablo Yanez Trujillo shaoran at sakuranohana.org
Tue Nov 25 09:20:04 EST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

Is there a posibility to add a 'uninstall' target to remove installed files?

Me second question is: I create libraries in the following way:

ADD_LIBRARY(libname SHARED ${SOURCES})

I want to build shared (.so) and dynamic (.a) libraries as well (just like automake's default behaviour) but I don't how
to create both at the same time.

ADD_LIBRARY(libname SHARED ${SOURCES})
ADD_LIBRARY(libname STATIC ${SOURCES})

leads to an error and even it wouldn't lead to an error I would have to set target properties twice. How can I build
both libraries types with the same name?

Thanks


Pablo

- --
Pablo Yanez Trujillo
http://klingsor.informatik.uni-freiburg.de
My public key: http://klingsor.informatik.uni-freiburg.de/gpg/supertux.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkksCZQACgkQDzf8xo+0xRX7mQCfU5tDIo907RY06iDIzRO9Mfet
RvMAmgJeihuWzeY2KsXnqZIPiLyRcdir
=36XA
-----END PGP SIGNATURE-----


More information about the CMake mailing list