From 8152db585c841282e3306696bd3d11e8d54bb11e Mon Sep 17 00:00:00 2001 From: Ming Rui Zhang <mingrui.zhang@savoirfairelinux.com> Date: Mon, 19 Apr 2021 09:44:59 -0400 Subject: [PATCH] cmake: prevent the console from showing up by default Change-Id: I87f352bf69dd5d60e9df821d3e1f9e7b349c29e2 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8bcf857b6..3ebe150bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -295,6 +295,9 @@ add_executable(${PROJECT_NAME} ${LRC_SRC_PATH}/webresource.qrc) if(MSVC) + # Makes it a GUI executable instead of a console application + set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE TRUE) + target_link_libraries(${PROJECT_NAME} ${QML_LIBS} ${QRENCODE_LIB} -- GitLab