diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-11-13 14:03:20 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-11-14 10:22:01 +0000 |
commit | ad98624f7493c66560da3e2af8ed0d3759a4d2f1 (patch) | |
tree | 9fa609b2cf6a8a91822a4a8436d4e2a5c0762bee /tests/auto/widgets/widgets/qopenglwidget/tst_qopenglwidget.cpp | |
parent | e9a58ba9e55467f8c69e19dd52c2afa7cbb39529 (diff) |
pro2cmake: Adjust script to generate new CMake API calls
The script can now generate both old style CMake API calls
(add_qt_module), as well as new style (qt_add_module).
The first case is considered api version 1, and the second case
is version 2.
You can force which api version to use for generation using
the --api-version command line argument.
This is useful when you want to regenerate an old project
(one that hasn't switched to new style), to keep the diffs
easier to read.
When no parameter is specified, the script will auto-detect
which api version is used in the existing CMakeLists.txt file
(if it exists), and keep using that, until someone force regenerates
the project with a new api version.
Change-Id: I41e4e6ed5db94ef7220c09b46fc5f12e6613e5d2
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/widgets/widgets/qopenglwidget/tst_qopenglwidget.cpp')
0 files changed, 0 insertions, 0 deletions