Fix add_qt_gui_executable for non-Gui projects
...which is needed, because pro2cmake thinks everything is a Gui project. Change-Id: Ib68f3eb0e796365e03b3805a3f742824cc263157 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
2feb54b15b
commit
f5fef44df0
@ -416,7 +416,10 @@ function(add_qt_gui_executable target)
|
||||
else()
|
||||
add_executable("${target}" WIN32 MACOSX_BUNDLE ${ARGN})
|
||||
endif()
|
||||
target_link_libraries("${target}" PRIVATE Qt::Core Qt::Gui)
|
||||
target_link_libraries("${target}" PRIVATE Qt::Core)
|
||||
if(TARGET Qt::Gui)
|
||||
target_link_libraries("${target}" PRIVATE Qt::Gui)
|
||||
endif()
|
||||
|
||||
if(ANDROID)
|
||||
qt_android_generate_deployment_settings("${target}")
|
||||
|
Loading…
Reference in New Issue
Block a user