97bfacf1e2
Pick-to: 6.5 Change-Id: I8d106554bb86ac1ec9bb7a4083de4c376bcbab1d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
58 lines
1.5 KiB
CMake
58 lines
1.5 KiB
CMake
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#####################################################################
|
|
## foreignwindows Binary:
|
|
#####################################################################
|
|
|
|
qt_internal_add_manual_test(foreignwindows
|
|
SOURCES
|
|
../diaglib/eventfilter.cpp ../diaglib/eventfilter.h
|
|
../diaglib/nativewindowdump.h
|
|
../diaglib/qwindowdump.cpp ../diaglib/qwindowdump.h
|
|
../diaglib/textdump.cpp ../diaglib/textdump.h
|
|
main.cpp
|
|
DEFINES
|
|
QT_DIAG_LIB
|
|
INCLUDE_DIRECTORIES
|
|
../diaglib
|
|
LIBRARIES
|
|
Qt::CorePrivate
|
|
Qt::Gui
|
|
Qt::GuiPrivate
|
|
Qt::OpenGL
|
|
Qt::Widgets
|
|
)
|
|
|
|
## Scopes:
|
|
#####################################################################
|
|
|
|
qt_internal_extend_target(foreignwindows CONDITION WIN32
|
|
SOURCES
|
|
../diaglib/nativewindowdump_win.cpp
|
|
LIBRARIES
|
|
user32
|
|
)
|
|
|
|
qt_internal_extend_target(foreignwindows CONDITION UNIX
|
|
SOURCES
|
|
../diaglib/nativewindowdump.cpp
|
|
)
|
|
|
|
qt_internal_extend_target(foreignwindows CONDITION QT_FEATURE_widgets
|
|
SOURCES
|
|
../diaglib/debugproxystyle.cpp ../diaglib/debugproxystyle.h
|
|
../diaglib/logwidget.cpp ../diaglib/logwidget.h
|
|
../diaglib/qwidgetdump.cpp ../diaglib/qwidgetdump.h
|
|
LIBRARIES
|
|
Qt::WidgetsPrivate
|
|
)
|
|
|
|
qt_internal_extend_target(foreignwindows CONDITION QT_FEATURE_opengl
|
|
SOURCES
|
|
../diaglib/glinfo.cpp ../diaglib/glinfo.h
|
|
LIBRARIES
|
|
Qt::OpenGL
|
|
Qt::OpenGLWidgets
|
|
)
|