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 )

-- 
David Faure, [EMAIL PROTECTED], sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

_______________________________________________
Kde-buildsystem mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-buildsystem

Reply via email to