[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Mac bundled application with multiple executables.
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2014-02-09 22:56:48
Message-ID: CAExHGmT1Y4vu4CLe8sJFQ6oJwCLVUvgpX=YXvRAW3M6GDbD=4Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Bill,

On Sun, Feb 9, 2014 at 8:45 PM, Bill Somerville <bill@classdesign.com>wrote:

> Hi,
>
> noob here so firstly thanks for the great build tools!
>
> I'm struggling with shoehorning a Win32/Linux Qt GUI application into
> CMake for those targets and for OS-X.
>
> At the moment the Mac build is manually transformed into an OS-X app
> bundle. I am making some progress getting it to install (and package, for
> deployment) directly into a bundle format. Using MACOSX_BUNDLE on the main
> GUI executable target plus the required CMake variable declarations.
>
> What I am stuck with is how to include another executable in the app
> bundle. It is a console type program that is spawned from the GUI to do
> some background work. Although it can be run standalone from the console,
> its purpose is to be run by the GUI program. Therefore it belongs in the
> bundle.
>
> What incantation do I need to give CMake to get this executable into the
> bundle installation. It is built as a target by the same CMake script as
> the GUI executable.
>

This is how CMake itself is shipped on MacOSX (the bundle starts the qt gui
and contains the console gui as well as the various cli tools like cmake,
ctest etc. So you may want to look into CMake's own buildsystem files for
that, IIRC the cmake buildsystem wasn't that hard to understand and follow.

Andreas

[Attachment #5 (text/html)]

<div dir="ltr">Hi Bill,<div class="gmail_extra"><br><div class="gmail_quote">On Sun, \
Feb 9, 2014 at 8:45 PM, Bill Somerville <span dir="ltr">&lt;<a \
href="mailto:bill@classdesign.com" \
target="_blank">bill@classdesign.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi,<br> <br>
noob here so firstly thanks for the great build tools!<br>
<br>
I&#39;m struggling with shoehorning a Win32/Linux Qt GUI application into CMake for \
those targets and for OS-X.<br> <br>
At the moment the Mac build is manually transformed into an OS-X app bundle. I am \
making some progress getting it to install (and package, for deployment) directly \
into a bundle format. Using MACOSX_BUNDLE on the main GUI executable target plus the \
required CMake variable declarations.<br>

<br>
What I am stuck with is how to include another executable in the app bundle. It is a \
console type program that is spawned from the GUI to do some background work. \
Although it can be run standalone from the console, its purpose is to be run by the \
GUI program. Therefore it belongs in the bundle.<br>

<br>
What incantation do I need to give CMake to get this executable into the bundle \
installation. It is built as a target by the same CMake script as the GUI \
executable.<br></blockquote><div><br></div><div>This is how CMake itself is shipped \
on MacOSX (the bundle starts the qt gui and contains the console gui as well as the \
various cli tools like cmake, ctest etc. So you may want to look into CMake&#39;s own \
buildsystem files for that, IIRC the cmake buildsystem wasn&#39;t that hard to \
understand and follow.</div> <div><br></div><div>Andreas </div></div></div></div>



-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic