aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/QtQuickWidgets/CMakeLists.txt
blob: 3c5ba52c3df50a3c9c9b3464124c0254196e1ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
project(QtQuickWidgets)

set(QtQuickWidgets_SRC
${QtQuickWidgets_GEN_DIR}/qquickwidget_wrapper.cpp
# module is always needed
${QtQuickWidgets_GEN_DIR}/qtquickwidgets_module_wrapper.cpp
)

set(QtQuickWidgets_include_dirs  ${QtQuickWidgets_SOURCE_DIR}
                                 ${QtQml_SOURCE_DIR}
                                 ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
                                 ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
                                 ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
                                 ${Qt${QT_MAJOR_VERSION}Network_INCLUDE_DIRS}
                                 ${Qt${QT_MAJOR_VERSION}Quick_INCLUDE_DIRS}
                                 ${Qt${QT_MAJOR_VERSION}Qml_INCLUDE_DIRS}
                                 ${Qt${QT_MAJOR_VERSION}QuickWidgets_INCLUDE_DIRS}
                                 ${libpyside_SOURCE_DIR}
                                 ${QtGui_GEN_DIR}
                                 ${QtCore_GEN_DIR}
                                 ${QtWidgets_GEN_DIR}
                                 ${QtNetwork_GEN_DIR}
                                 ${QtQuick_GEN_DIR}
                                 ${QtQml_GEN_DIR}
                                 ${QtQuickWidgets_GEN_DIR})

set(QtQuickWidgets_libraries pyside6
                             ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
                             ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
                             ${Qt${QT_MAJOR_VERSION}Network_LIBRARIES}
                             ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES}
                             ${Qt${QT_MAJOR_VERSION}Quick_LIBRARIES}
                             ${Qt${QT_MAJOR_VERSION}Qml_LIBRARIES}
                             ${Qt${QT_MAJOR_VERSION}QuickWidgets_LIBRARIES})

set(QtQuickWidgets_deps QtGui QtQml QtQuick QtWidgets QtNetwork)

create_pyside_module(NAME QtQuickWidgets
                     INCLUDE_DIRS QtQuickWidgets_include_dirs
                     LIBRARIES QtQuickWidgets_libraries
                     DEPS QtQuickWidgets_deps
                     TYPESYSTEM_PATH QtQuickWidgets_SOURCE_DIR
                     SOURCES QtQuickWidgets_SRC)