fix: avoid console window under Windows with cmake build

This commit is contained in:
Gary Wang 2019-11-24 23:31:45 +08:00
parent 6074a00b33
commit 4a5fe4c289

View File

@ -61,6 +61,14 @@ add_executable (${EXE_NAME}
target_link_libraries (${EXE_NAME} Qt5::Widgets Qt5::Svg)
# Extra build settings
if (WIN32)
set_property (
TARGET ${EXE_NAME}
PROPERTY WIN32_EXECUTABLE true
)
endif ()
# Install settings
if (UNIX)
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)