[CMake] padding link arguments to the linker

mike jackson imikejackson at gmail.com
Tue Feb 7 09:20:40 EST 2006


I am building the official VTK 5.x release on OS X and I would like to
add a custom link argument for all the generated libraries. I am
building dynamic libraries and I would like to set the "install-name"
of each library to "@executable_path/../Plugins" so I can include the
libs in my .app package. Normally I would set this in the Xcode build
settings but since I am using cmake I have no idea where to set that.

The link argument would normally be something like "-install_name
@executable_path/../Plugins/libvtkCommon.dylib"

I asked on the vtk-users mail list but they said to ask here.
---
Cheers
Mike Jackson
imikejackson _at_ gee-mail dot com


More information about the CMake mailing list