[CMake] best practice way of copying libraries to an install package

edA-qa mort-ora-y eda-qa at disemia.com
Wed Sep 22 15:39:32 EDT 2010


I need to produce a nice self-contained packaged of executables and
libraries for my project. I've looked around the web and found many very
distinct ways of achieving this. I was wondering if there is some best
practice related to this.

Ideally I'd like to work from the same variables I use for linking, but
I think I've already given up on that and know I'll have to hand-list
every library. But still then I have these issues:

- on windows the libraries are often the .lib, but I need to locate the
associated DLL
- on linux I need to ensure I'm copying the actual file an not a symlink
- between debug/release I seem to have to list the files twice
- I'd prefer a cross-platform solution, I don't want to code the copying
once for each target platform

If anybody has a good resource, or can recommend some best practices,
that would be great.

-- 
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

	BigTPoker - Poker fun and games

		http://BigTPoker.com/
	
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100922/ca2c6fe8/attachment.pgp>


More information about the CMake mailing list