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