Replace AUTOMOC by qt_manual_moc in tests
AUTOMOC can not be used in Qt internal testing, since Qt::moc target is not available at configure phase. Replace it by the qt_manual_moc call. Fixes: QTBUG-94085 Change-Id: I793091357d536612ae2a81032606be68dee3a6d2 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
parent
2679eeaac9
commit
e970b7487a
@ -2,6 +2,18 @@
|
||||
##Client test shared components:
|
||||
#####################################################################
|
||||
|
||||
qt_manual_moc(moc_files
|
||||
mockcompositor.h
|
||||
coreprotocol.h
|
||||
corecompositor.h
|
||||
datadevice.h
|
||||
fullscreenshellv1.h
|
||||
iviapplication.h
|
||||
textinput.h
|
||||
xdgoutputv1.h
|
||||
xdgshell.h
|
||||
)
|
||||
|
||||
add_library(SharedClientTest
|
||||
OBJECT
|
||||
corecompositor.cpp corecompositor.h
|
||||
@ -13,10 +25,9 @@ add_library(SharedClientTest
|
||||
textinput.cpp textinput.h
|
||||
xdgoutputv1.cpp xdgoutputv1.h
|
||||
xdgshell.cpp xdgshell.h
|
||||
${moc_files}
|
||||
)
|
||||
|
||||
set_property(TARGET SharedClientTest PROPERTY AUTOMOC ON)
|
||||
|
||||
qt6_generate_wayland_protocol_server_sources(SharedClientTest
|
||||
FILES
|
||||
${PROJECT_SOURCE_DIR}/src/3rdparty/protocol/fullscreen-shell-unstable-v1.xml
|
||||
|
Loading…
x
Reference in New Issue
Block a user