diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-02-23 18:10:10 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-02-24 10:25:50 +0100 |
commit | cfe6ac20a7aaac8c4689c3e22f839e6d95886944 (patch) | |
tree | 7b4de3487a9603c2f7c1ab630f6aab0aadd57034 /examples/scriptableapplication | |
parent | f914137757ad478e125f9d076bdeaef0f8428e8f (diff) |
Port the Qt bindings examples to the <QtModule/QtClass> convention
This simplifies the shiboken call; the global Qt include directory can
be passed instead of each single QtCore/QtGui/QtWidgets directory.
Pick-to: 6.0
Change-Id: I55a59ad12b0a9596a2c8d9dc7f0b9c041c38665c
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/scriptableapplication')
-rw-r--r-- | examples/scriptableapplication/CMakeLists.txt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/scriptableapplication/CMakeLists.txt b/examples/scriptableapplication/CMakeLists.txt index a67025c62..9e306cdd4 100644 --- a/examples/scriptableapplication/CMakeLists.txt +++ b/examples/scriptableapplication/CMakeLists.txt @@ -65,12 +65,9 @@ endif() # Get all relevant Qt include dirs, to pass them on to shiboken. -get_property(QT_CORE_INCLUDE_DIRS TARGET Qt6::Core PROPERTY INTERFACE_INCLUDE_DIRECTORIES) -get_property(QT_GUI_INCLUDE_DIRS TARGET Qt6::Gui PROPERTY INTERFACE_INCLUDE_DIRECTORIES) get_property(QT_WIDGETS_INCLUDE_DIRS TARGET Qt6::Widgets PROPERTY INTERFACE_INCLUDE_DIRECTORIES) -set(QT_INCLUDE_DIRS ${QT_CORE_INCLUDE_DIRS} ${QT_GUI_INCLUDE_DIRS} ${QT_WIDGETS_INCLUDE_DIRS}) set(INCLUDES "") -foreach(INCLUDE_DIR ${QT_INCLUDE_DIRS}) +foreach(INCLUDE_DIR ${QT_WIDGETS_INCLUDE_DIRS}) list(APPEND INCLUDES "-I${INCLUDE_DIR}") endforeach() |