From 00b9177f3aae13aab5d50b42349e6a748c8cfd04 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 23 Apr 2020 10:00:23 +0200 Subject: [PATCH] gui/CMakeLists.txt: add "WIN32" flag to add_executable This makes cmake configure the compiler to create a gui app (e.g. not opening a console window that spawns a gui window as a child process) --- gui/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index 7d7911e..17e3166 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -37,7 +37,7 @@ set( PROGRAM_SRC helpers.cpp ) -add_executable( ${PROGRAM_EXE} ${PROGRAM_SRC} ) +add_executable( ${PROGRAM_EXE} WIN32 ${PROGRAM_SRC} ) # Libraries find_package( Qt5 COMPONENTS Concurrent Core Widgets REQUIRED )