Re: [CMake] Installing a helper application

2011-01-06 Thread KC Jones
Excellent approach. Thank you. KC Jones kc.jo...@skype.net SkypeId: bernalkc On Jan 6, 2011, at 5:55 AM, Ryan Pavlik wrote: > You'll need something closer to this: > > > add_executable(myapp MACOSX_BUNDLE [...]) > > find_file(helperpath [...]) > if(NOT helperpath) > message(FATAL_ERROR

Re: [CMake] Installing a helper application

2011-01-06 Thread Ryan Pavlik
You'll need something closer to this: add_executable(myapp MACOSX_BUNDLE [...]) find_file(helperpath [...]) if(NOT helperpath) message(FATAL_ERROR "Need helper app!") endif() install(TARGETS myapp BUNDLE DESTINATION . RUNTIME DESTINATION bin ) if(APPLE) install(PROGRAMS ${helperpath}

Re: [CMake] Installing a helper application

2011-01-05 Thread Michael Jackson
Can you use "Find_File()" to get the path to the file. Then use the install(FILES ... ) command to place the file in your app bundle. Not tried any of that but it might work. ___ Mike Jackson www.bluequartz.net Principa

[CMake] Installing a helper application

2011-01-05 Thread KC Jones
I'm building an app on Mac, Linux, and Win. My application requires that a helper application, built outside of my project, be installed along with it. On Linux and Win, its sufficient to copy the helper app to the same directory as my app. On Mac, it needs to be copied into the bundle in the