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

2010-09-23 Thread Eric Noulard
2010/9/23 edA-qa mort-ora-y eda...@disemia.com:
 On 09/23/2010 12:12 AM, Ryan Pavlik wrote:
 If anybody has a good resource, or can recommend some best practices,
 that would be great.
 Use CMake and CPack?  See the wiki, and elsewhere on the internet.

 Yes, I am of course using CMake. My question is more along of the lines
 of how to best achieve the requirements of packaging. The install
 command on its own is pretty weak and locating and copying files
 requires all sorts of additional work (at least when it comes to
 finding/copying libraries, data files are fine).

 So I was wondering if there are some good, easy, or common ways to
 achieve packaging library dependencies.

Some CMake tries to help for that task.

InstallRequiredSystemLibraries.cmake  -- Windows only
GetPrerequisite.cmake
BundleUtilities.cmake

I think BundleUtilities try to achieve what you want, as far as I know
it was designed for MacOS but has been updated to work on
Linux and Windows as well.

GetPrerequisite is a basic helper which helps you find prerequisite
for an executable or library.

If you dig the mailing list about it you should find more valuable informations
about those.


-- 
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] best practice way of copying libraries to an install package

2010-09-23 Thread Alexander Neundorf
On Thursday 23 September 2010, Eric Noulard wrote:
 2010/9/23 edA-qa mort-ora-y eda...@disemia.com:
  On 09/23/2010 12:12 AM, Ryan Pavlik wrote:
  If anybody has a good resource, or can recommend some best practices,
  that would be great.
 
  Use CMake and CPack?  See the wiki, and elsewhere on the internet.
 
  Yes, I am of course using CMake. My question is more along of the lines
  of how to best achieve the requirements of packaging. The install
  command on its own is pretty weak and locating and copying files
  requires all sorts of additional work (at least when it comes to
  finding/copying libraries, data files are fine).
 
  So I was wondering if there are some good, easy, or common ways to
  achieve packaging library dependencies.

 Some CMake tries to help for that task.

 InstallRequiredSystemLibraries.cmake  -- Windows only
 GetPrerequisite.cmake
 BundleUtilities.cmake

 I think BundleUtilities try to achieve what you want, as far as I know
 it was designed for MacOS but has been updated to work on
 Linux and Windows as well.

 GetPrerequisite is a basic helper which helps you find prerequisite
 for an executable or library.

 If you dig the mailing list about it you should find more valuable
 informations about those.

..and it would be great if while doing that you could also put something in 
the wiki: http://www.paraview.org/Wiki/CMake#CPack :-)

Alex
___
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] best practice way of copying libraries to an install package

2010-09-22 Thread Ryan Pavlik

 On 9/22/2010 2:39 PM, edA-qa mort-ora-y wrote:

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.


Use CMake and CPack?  See the wiki, and elsewhere on the internet.

Ryan

--
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University

rpav...@iastate.edu
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik

___
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