diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-11-28 14:57:31 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-12-07 12:41:39 +0000 |
commit | 4d82ee992992251bcadf0097a4df60fe7c3b7ef8 (patch) | |
tree | e1289f18413679c2def060821980c93452cecf26 /sources/pyside2/PySide2/Qt3DInput | |
parent | 69755075484b75f2e7b97663b9135be90be6140b (diff) |
Make it hard to use the create_pyside_module function incorrectly
Rewrite the function to use keyword arguments instead of ordered
arguments. Also add error detection when required arguments are not
passed, or have a typo in them.
Adjust all the module cmake files to use keyword arguments.
Change-Id: I7bb0c6561d7dca1e7f673e29eb457da50ae5df04
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2/PySide2/Qt3DInput')
-rw-r--r-- | sources/pyside2/PySide2/Qt3DInput/CMakeLists.txt | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sources/pyside2/PySide2/Qt3DInput/CMakeLists.txt b/sources/pyside2/PySide2/Qt3DInput/CMakeLists.txt index 694f373f8..a3366c9ba 100644 --- a/sources/pyside2/PySide2/Qt3DInput/CMakeLists.txt +++ b/sources/pyside2/PySide2/Qt3DInput/CMakeLists.txt @@ -46,11 +46,10 @@ set(Qt3DInput_libraries pyside2 set(Qt3DInput_deps Qt3DCore) -create_pyside_module(Qt3DInput - Qt3DInput_include_dirs - Qt3DInput_libraries - Qt3DInput_deps - Qt3DInput_SOURCE_DIR - Qt3DInput_SRC - "" - ${Qt3DInput_BINARY_DIR}/typesystem_3dinput.xml) +create_pyside_module(NAME Qt3DInput + INCLUDE_DIRS Qt3DInput_include_dirs + LIBRARIES Qt3DInput_libraries + DEPS Qt3DInput_deps + TYPESYSTEM_PATH Qt3DInput_SOURCE_DIR + SOURCES Qt3DInput_SRC + TYPESYSTEM_NAME ${Qt3DInput_BINARY_DIR}/typesystem_3dinput.xml) |