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

It depends on whether you want to install it the UNIX-y way (which is totally an ok thing to do, and actually my own preference as a Mac user) or if you want to install it as a Mac OS X Framework.

It depends on whether you want to install it the UNIX-y way (which is totally an ok thing to do, and actually my own preference as a Mac user) or if you want to install it as a Mac OS X Framework. To install the libraries the UNIX-y way, you can use: INSTALL(TARGETS target1 target2 DESTINATION lib) In the above, replace target1 and target2 with the names of the targets that resulted in libX. Dylib and libY.

Dylib being generated (i.e. Whatever you used in ADD_LIBRARY). You can use the variable CMAKE_INSTALL_PREFIX in order to determine where the library ultimately ends up... with the above, if you set CMAKE_INSTALL_PREFIX to /usr/local, then it will install the libraries in /usr/local/lib Edit Based on your update, you may find Component Install with CPack and CPack Mac OS X PackageMaker Generator to be of interest.

Since you will be installing libraries into the system, the PackageMaker generator is the one you should use. If you were merely distributing an application, then creating a ". App" bundle and distributing it in a ".

Dmg" would be the proper thing to do. PackageMaker is installed on Mac OS X when you install the Xcode Developer Tools. To package a ".

App" bundle in a ". Dmg", you can use the Mac OS X disk utility application or its associated commandline tools.

Actually, it's difficult to express myself in this situation. I am more interested in the distribution of the libraries. For example, for debian/ubuntu, I use a .

Deb generated by CMake/CPack (therefore I already use INSTALL), but I don't know what to do it in mac. – YuppieNetworking Jun 3 '10 at 17:46 Cool I didn't know the component install feature. Also, you are right, the packagemaker it's the way to go with libraries, as explained in developer.apple.Com/mac/library/documentation/Porting/… ( I just found the link )... unfortunately, the uninstall option is still a wish – YuppieNetworking Jun 3 '10 at 22:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions