Fix a few CMake warnings

Use AUTO_RESOURCE_PREFIX and move QML modules into suitable output
directories.

Change-Id: If39218450cf8dda41547c45a9b5deaa8673915bf
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Ulf Hermann 2022-12-02 09:17:47 +01:00
parent cda417cf03
commit 0b508c9617
2 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,8 @@ qt6_add_qml_module(testCppTypes
URI TestTypes
SOURCES
commontypes.h
AUTO_RESOURCE_PREFIX
OUTPUT_DIRECTORY TestTypes
)
qt_autogen_tools_initial_setup(testCppTypesplugin)

View File

@ -80,6 +80,7 @@ qt_add_qml_module(tst-qmltyperegistrar-with-dashes
AUTO_RESOURCE_PREFIX
SOURCES
foo.cpp foo.h
OUTPUT_DIRECTORY Module-With-Dashes
)
qt_autogen_tools_initial_setup(tst-qmltyperegistrar-with-dashesplugin)