On Tuesday 20 April 2010 03:05:48 pm Timothy Shead wrote: > On 4/20/10 1:53 PM, Clinton Stimpson wrote: > >> Can you give me an example using DragNDrop to combine two CMake-built > >> executables into a single bundle? My impression (perhaps dated) is that > >> I'd have to do some magic around making one of them a "source" file of > >> the other, so I could use MACOSX_PACKAGE_LOCATION to embed it in the > >> final bundle. > > > > CMake does that (cmake and ccmake commandline apps get put into the > > cmake-gui bundle). > > To test, just set CMAKE_INSTALL_PREFIX=/ and run "cpack -G DragNDrop" on > > it. It does a set(CMAKE_INSTALL_PREFIX=/CMake.app/Contents) trick to put > > everything in the bundle. > > Did you need a different example than that? > > I accept that this works, I just wasn't aware it was being done with the > DragNDrop generator. So it's a fantastic example, except that I still > don't see the magic where CMAKE_INSTALL_PREFIX magically morphs from "/" > for cmake-gui to "/CMake.app/Contents" for everything else. If you can > point me to where that happens, I'd love to ditch the BundleGenerator. >
The little section starts in CMake/CMakeLists.txt line 428, and it also sets CMAKE_BUNDLE_LOCATION which is used for the install() command of the bundle itself. But like David said, it could use work. And I do it a different way that is simpler to me. Clint _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake