[CMake] Problems with CPack and Mac OS X

Michael Jackson mike.jackson at bluequartz.net
Thu Jan 6 17:30:58 EST 2011


You will want to read this page:

http://www.cmake.org/Wiki/BundleUtilitiesExample

It should answer your questions.
___________________________________________________________
Mike Jackson                      www.bluequartz.net
Principal Software Engineer       mike.jackson at bluequartz.net 
BlueQuartz Software               Dayton, Ohio

On Jan 6, 2011, at 5:27 PM, NoRulez wrote:

> Thank you very much, but how can I add the QtCore.framework for example? 
> 
> INSTALL(TARGETS "/Library/Frameworks/QtCore.framework" FRAMEWORK DESTINATION MyApp.app/Contents/Frameworks COMPONENT MyApp)
> 
> Doesn't work, maybe I misunderstood some CMake commands?
> 
> Best Regards
> NoRulez
> 
> Am 06.01.2011 um 21:45 schrieb Michael Wild <themiwi at gmail.com>:
> 
>> On 01/06/2011 09:31 PM, NoRulez wrote:
>>> Hi,
>>> 
>>> I want to use the package generator PackageMaker.
>>> 
>>> If I run cpack from the command line I get the Error that my app couldn't be found (without .app)
>>> 
>>> I have a bundle created with add_executable(MyApp MACOSX_BUNDLE...)
>>> 
>>> In the cpack configuration I have 
>>> INSTALL(PROGRAMS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MyApp" DESTINATION /opt/MyApp COMPONENT MyApp)
>>> 
>>> Why it doesn't use MyApp.app? If I declare it, then the error appears that it is a directory
>>> 
>>> Thanks in advance
>>> 
>>> Best Regards
>>> NoRulez
>> 
>> For targets, always use the install(TARGET ...) signature:
>> 
>> install(TARGETS MyApp
>> BUNDLE DESTINATION /opt/MyApp COMPONENT MyApp)
>> 
>> install(PROGRAMS ...) is intended for scripts (as the documentation
>> clearly states.)
>> 
>> Michael
>> 
>> _______________________________________________
>> 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
> _______________________________________________
> 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



More information about the CMake mailing list