[CMake] CPack for 2.6: How to control what gets packed?

2011-12-19 Thread Harelick, Matthew
Hi:

I am using the install command to create a file organization that looks 
something like this:

Myapp:
bin
examples
lib
config

For the lib directory I am naming specific libraries when I perform the 
install, like this:


${XMLLIB}/libxerces-c.so.28
${XMLLIB}/libxerces-c.so.28.0

The install step works fine.

The problem is that when I call cpack with
CPack, I am expecting CPack to just package up my install directory.  However 
its not doing that because its leaving the libxerces-c.so.28 library.  How do I 
get CPack to just package up the install directory created in previous steps?

Thanks

Matthew Harelick
--

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

[CMake] Delivering imported libraries with binaries on Linux

2011-10-12 Thread Harelick, Matthew
Hello:


I am working on a project that relies on third party libraries, for example 
MyVendor.so.   I am using cmake 2.6.  When the third party shared object is 
checked out, it is installed in svnroot/Thirdparty/MyVendor/lib/MyVendor.so

I add the library has an imported library.  When I build the application, the 
location of the library is linked to the precise location above.

How do I:

1)  Encode cmake to generate a make file that copies the library into a 
location relative to the binary, like
../lib so that I can then use that directory as an import location.  I can copy 
the file myself manually but it would nice if I could use cmake to help with 
doing this automatically.  I know that if I was handwriting a makefile I could 
in effect build a library target by copying one from a different location.

2)  How do I ensure that CPack maintains that relative structure so that 
internally the application looks in ../lib for the file to dynamically load?

Thanks

Matthew Harelick
--

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