Support Scoop installation for OpenAPI Generator CLI on windows
- Detect whether OpenAPI Generator CLI was installed via scoop by
invoking powershell and running `scoop which openapi-generator-cli`.
This command returns a path such as:
"~/scoop/apps/openapi-generator-cli/current/openapi-generator-cli",
which differs from the executable path found via `find_program`:
"~/scoop/shims/openapi-generator-cli".
Using the path from the scoop command is preferred because the cli
resides in the same directory as the jar file.
- Set OPENAPI_GENERATOR_CLI_JAR if the jar path exists.
Fixes: QTBUG-142545
Pick-to: 6.11
Change-Id: Ib9405e603a12a54562fb373cef147fd36774437a
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>