From 304c938c71b5a01293adf7f2b523c4355d98f5fc Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Thu, 11 Jan 2007 17:47:43 +0000 Subject: cosmetic fix, now the parameter for GUI apps is handled the same way both under Windows and OSX Alex CCMAIL: kde-buildsystem@kde.org It does still work under windows, right ? svn path=/trunk/KDE/kdelibs/; revision=622373 --- modules/KDE4Macros.cmake | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index 454bf9eb..e1c349ff 100644 --- a/modules/KDE4Macros.cmake +++ b/modules/KDE4Macros.cmake @@ -627,19 +627,21 @@ macro (KDE4_ADD_EXECUTABLE _target_NAME) set(_type "GUI") # determine additional parameters for add_executable() + # for GUI apps, create a bundle on OSX if (APPLE) set(_add_executable_param MACOSX_BUNDLE) endif (APPLE) + # for GUI apps, this disables the additional console under Windows + if (WIN32) + set(_add_executable_param WIN32) + endif (WIN32) + if (_nogui) set(_type "NOGUI") set(_add_executable_param) - else (_nogui) - if (WIN32) - set(_add_executable_param WIN32) - endif (WIN32) endif (_nogui) - + if (_uninst) set(_type "RUN_UNINSTALLED") endif (_uninst) -- cgit v1.2.1