RPATH again - different types of executables
David Faure
faure at kde.org
Tue Mar 28 20:08:12 CEST 2006
On Tuesday 28 March 2006 19:48, Alexander Neundorf wrote:
> On Tuesday 28 March 2006 10:27, David Faure wrote:
> > On Monday 27 March 2006 23:38, William A. Hoffman wrote:
> > > Currently, to get GUI things to run on the Mac, they have to be
> > > application bundles. The way to do this in CMake, is this:
> > >
> > > ADD_EXECUTABLE(BundleTest MACOSX_BUNDLE BundleTest.cxx)
> > >
> > > See the cmake sources Tests/BundleTest for an example.
> > > This is much like on windows where you can add a WIN32 flag
> > > in the add_executable to make it a non-console app.
> >
> > Alex's suggestion of wrapping this into "a bundle by default and NOGUI for
> > no bundle (and console app on win32)" makes sense for KDE, where most
> > executables are GUI programs.
> >
> > IMHO it's better when the writer of the CMakeList doesn't have to consider
> > the specifics of all platforms; GUI / NOGUI should be enough to choose
> > between
> > ( MacOSX bundle, GUI app on windows ) and ( no mac os x bundle, console app
> > on windows )
>
> What's actually a "console app" on windows ?
A text-mode application, whose stdout and stderr go to stdout and stderr,
unlike gui apps. With qmake this is what "CONFIG += console" does.
> Have all GUI apps to be non-console apps ?
Yes. But the default is non-console; console is the special case ;)
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the Kde-buildsystem
mailing list