Set 'MACOSX_BUNDLE' for GUI apps under MacOS

This makes it a GUI executable that can be launched from
the Finder. Not tested yet.
This commit is contained in:
Martchus 2017-03-29 00:17:26 +02:00
parent 263418b9d5
commit 784781b409
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,7 @@ set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}")
set(META_APP_DESCRIPTION "Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models")
set(META_VERSION_MAJOR 5)
set(META_VERSION_MINOR 6)
set(META_VERSION_PATCH 0)
set(META_VERSION_PATCH 1)
set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
# add project files

View File

@ -42,9 +42,11 @@ else()
endif()
if(WIDGETS_GUI OR QUICK_GUI)
# set "GUI-type" to WIN32 to hide console under windows
# set "GUI-type" to WIN32 to hide console under Windows
if(WIN32)
set(GUI_TYPE WIN32)
elseif(APPLE)
set(GUI_TYPE MACOSX_BUNDLE)
endif()
# add source files requried by both GUI variants