mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
add WIN32 flag for vcmilauncher to hide console window
This commit is contained in:
parent
8581cfd5d8
commit
29e6c2c412
@ -51,7 +51,11 @@ set(CMAKE_CXX_FLAGS "${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS} ${CMAKE_CXX_FLAGS}")
|
||||
|
||||
qt5_wrap_ui(launcher_UI_HEADERS ${launcher_FORMS})
|
||||
|
||||
add_executable(vcmilauncher ${launcher_SRCS} ${launcher_UI_HEADERS})
|
||||
if(WIN32)
|
||||
add_executable(vcmilauncher WIN32 ${launcher_SRCS} ${launcher_UI_HEADERS})
|
||||
else()
|
||||
add_executable(vcmilauncher ${launcher_SRCS} ${launcher_UI_HEADERS})
|
||||
endif()
|
||||
|
||||
# The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
|
||||
target_link_libraries(vcmilauncher vcmi ${Qt5Widgets_LIBRARIES} ${Qt5Network_LIBRARIES})
|
||||
|
Loading…
Reference in New Issue
Block a user