Only set AUTOMOC for fglauncher target.
(Avoids pointless noise for all other targets)
This commit is contained in:
parent
1ba62acfcc
commit
72e0ea9e40
2 changed files with 4 additions and 4 deletions
|
@ -284,7 +284,6 @@ find_package(Qt5 5.1 COMPONENTS Widgets)
|
|||
if (Qt5Widgets_FOUND)
|
||||
message(STATUS "Will enable Qt launcher GUI")
|
||||
set(HAVE_QT 1)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
endif()
|
||||
|
||||
##############################################################################
|
||||
|
|
|
@ -84,6 +84,7 @@ if (HAVE_QT)
|
|||
${uic_sources}
|
||||
${qrc_sources})
|
||||
|
||||
set_property(TARGET fglauncher PROPERTY AUTOMOC ON)
|
||||
target_link_libraries(fglauncher Qt5::Core Qt5::Widgets )
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue