What would be the best way to install (distribute) dynamic libraries in Mac OSX using CMake/Cpack ?

Posted by YuppieNetworking on Stack Overflow See other posts from Stack Overflow or by YuppieNetworking
Published on 2010-06-03T17:06:46Z Indexed on 2010/06/03 18:34 UTC
Read the original article Hit count: 269

Filed under:
|
|

Hello all,

I have a project whose artifacts are two dynamic libraries, let's say libX.dylib and libY.dylib (or .so for linux distributions). There are no executables.

Now I would like to distribute these libraries. Since I already use CMake to compile it, I looked at CPack and successfully generated .tgz and .deb packages for Linux. However, for Mac OSX I have no idea and the CPack Wiki about its generators did not help me much. I managed to generate a PackageMaker package, but as clearly stated at this packagemaker howto, there is no uninstall option when using this util. I then read a bit about Bundles, but I feel lost specially since I have no executable.

Question: What is the correct way to generate a package for Mac OSX using CPack?

My ideal scenario would be either something that installs as easily as a bundle or as a deb file in debian/ubuntu.

Thanks for your help

Edit One more detail: the code to one of these libraries is not open, so I can't expect the users to do a cmake; make; make install

That's why I want a .deb, .tar.gz, bundle or whatsoever.

© Stack Overflow or respective owner

Related posts about mac

Related posts about macosx