Build CLI wrappers for Qt applications by default

Most of my Qt apps provide at least a basic CLI as well so providing the
CLI wrapper by default makes most sense.
This commit is contained in:
Martchus 2023-05-07 21:41:06 +02:00
parent a91c015e1c
commit 6e4ea3652c
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,8 @@ endif ()
if (WIN32)
# set "GUI-type" to WIN32 to hide console under Windows
set(GUI_TYPE WIN32)
# add option for building CLI-wrapper
option(BUILD_CLI_WRAPPER "whether to build a CLI wrapper" ON)
elseif (APPLE)
# make the GUI application a "bundle" under MacOSX
set(GUI_TYPE MACOSX_BUNDLE)