Commit Graph

9 Commits

Author SHA1 Message Date
Alexey Edelev 409b41e61f Add the use of the qt_internal_project_setup function
The function sets the required CMake variables and policies.

Pick-to: 6.5
Task-number: QTBUG-112685
Change-Id: I245bd218eb9c18b51b0698e3cca13fd03903dcd6
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
2023-05-10 18:51:16 +02:00
Lucie Gérard 9c44297858 Change the license of all CMakeLists.txt and *.cmake files to BSD
Task-number: QTBUG-105718
Change-Id: Id14ba04aaa0724ea734339b96437853065874e3a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-08-23 15:45:50 +02:00
Lucie Gérard 336135cb91 Add license headers to cmake files
CMakeLists.txt and .cmake files of significant size
(more than 2 lines according to our check in tst_license.pl)
now have the copyright and license header.

Existing copyright statements remain intact

Task-number: QTBUG-88621
Change-Id: I829aeda2bda017b7d5bf39795b79dbaee143cb60
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-08-03 13:23:45 +02:00
Alexandru Croitor 77926b45c3 CMake: Bump almost all cmake_minimum_required calls to 3.16
Needed for subsequent change that will check and error out if the
version is lower than 3.16. We do that to ensure all policies
introduced by CMake up to version 3.16 have their behavior set to
NEW.

Pick-to: 6.2
Task-number: QTBUG-95018
Change-Id: I144534fdbd2669135f483ec575651d62c88c036b
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
2021-09-22 19:50:34 +02:00
Joerg Bornemann 1f502ef501 Remove unneeded CMake variable assignments
Remove assignments to the transitionary variables
QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS and
QT_USE_FIXED_QT_ADD_RESOURCE_BASE.
Both are not needed anymore.

Task-number: QTBUG-94444
Change-Id: Ie54f38267a7529e96117e1be2b2bf2164372024f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2021-06-14 11:44:16 +02:00
Joerg Bornemann e73ef93876 Use fixed qt_add_resource BASE argument
Pick-to: 6.1
Task-number: QTBUG-86726
Change-Id: I8372086c40043a6bd1d306b6bfb711e96ddc7cb7
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-05-22 21:12:49 +02:00
Joerg Bornemann 559213087d CMake: Disable usage of CMake API compatibility wrappers
Setting the QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS variable
in the project ensures we ported away from old API calls.

Task-number: QTBUG-86815
Change-Id: I657ce43f65def5a13ca14030215a8adc37690d20
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2021-05-22 21:12:42 +02:00
Tuomo Pelkonen d2c6249bb9 Fix build for Qt 6.1
Task-number: QTBUG-89299
Task-number: QTBUG-90926
Pick-to: 6.1
Change-Id: I49822338f94e2bdcb0ae5b29d2211127e40d58f9
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2021-02-10 12:49:14 +02:00
Tuomo Pelkonen e2e20c9f11 Add CMake build
Task-number: QTBUG-89299
Change-Id: I5becbf39605e566c3d32cb5e210d974df9de27da
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2021-01-27 13:16:44 +02:00