CMake: Split OpenApi module into an additional tools package


The qt generator plugin can be considered as an arch-independent
tool that can be re-used across different platforms. Thus it makes
sense to package it in a separate OpenApiTools cmake package, rather
than as part of the main OpenApi cmake package. This follows the
precedent of keeping tools in a separate package.

Create a new OpenApiTools package that will create the generator
plugin cmake IMPORTED target, as well as expose the openapi public
CMake API for using the tool.

Make the main OpenApi package depend on the OpenApiTools package.
Make the java and upstream generator dependencies be dependencies of
the tools package rather than the main module.

Change-Id: I42f9ae13fd0bc56f2610bc081f78f4847917df5d
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
commit5370c4098e7affe8b300d9aaa1d7d66f125ef0ca
parent274cb01ec2e7b9ff9646d0deee82a1149edab157
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeFri, 28 Nov 2025 13:02:35 +0100