diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-01-11 17:47:43 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-01-11 17:47:43 +0000 |
commit | 304c938c71b5a01293adf7f2b523c4355d98f5fc (patch) | |
tree | 152965944ef489b7083fd614922c09dd000bfa74 /modules/KDE4Macros.cmake | |
parent | 59b29bc3a4d8bf871e4f6eefb47f71da94622eae (diff) | |
download | extra-cmake-modules-304c938c71b5a01293adf7f2b523c4355d98f5fc.tar.gz extra-cmake-modules-304c938c71b5a01293adf7f2b523c4355d98f5fc.tar.bz2 |
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
Diffstat (limited to 'modules/KDE4Macros.cmake')
-rw-r--r-- | modules/KDE4Macros.cmake | 12 |
1 files changed, 7 insertions, 5 deletions
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) |