[CMake] MacOSX frameworks

Brad King brad.king at kitware.com
Thu May 26 09:09:49 EDT 2005


Richard Wackerbarth wrote:
> Rather than static or Unix shared (dylib), has anyone tried to  generate 
> framework-style shared libraries with CMake?
> If so, any hints would be appreciated.

What do you mean by "framework-style"?  If you are referring to the 
directory structure in which they are installed then that is just a 
matter of arranging the INSTALL_TARGET and INSTALL_FILES commands 
correctly for the library and its header files.  It is even possible to 
register post-install commands to setup the proper symbolic links.

If you are referring to shared modules (.so) that cannot be linked but 
can be loaded dynamically (such as plugins), then just add the library 
as a MODULE instead of STATIC or SHARED.

-Brad


More information about the CMake mailing list