[CMake] OS X Bundle building -- adding external DYLIB files?

kent williams nkwmailinglists at gmail.com
Tue Apr 28 14:21:28 EDT 2009


I just wrote a CMakeLists.txt file for a program that depends on a
bunch of libraries that I had to build before building the
application.

I want to generate a deliverable OS X bundle, but I'm neither an OS X
development expert nor a CMAKE OS X bundle expert.

Simply put, I want to do the absolute minimum in order to package the
DYLIB files in the bundle and have the application know to use those
DYLIB files.

How does one do this?

Right now, the application that gets built seems to refer to these
DYLIB files by their absolute path where I built them.  This makes
giving the program to anyone who doesn't have those libraries at
exactly the same absolute path impossible.

I have read the CMake documentation, and done some searching around
with Google, without much enlightenment.  If you think I need to just
RTFM -- point me to TFM please ;-)


More information about the CMake mailing list