[CMake] uninstall target & libraries

Micha Renner Micha.Renner at t-online.de
Tue Nov 25 10:02:19 EST 2008


Am Dienstag, den 25.11.2008, 15:20 +0100 schrieb Pablo Yanez Trujillo:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi
> 
> Is there a posibility to add a 'uninstall' target to remove installed files?

Look here:
http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F


> 
> 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-----
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list