summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Add the use of the qt_internal_project_setup functionAlexey Edelev2023-05-031-0/+1
| | | | | | | | | The function sets the required CMake variables and policies. Pick-to: 6.5 Task-number: QTBUG-112685 Change-Id: Ie96433994aab01d4aea3942ca860f515027c762f Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Remove remains of qmake conversion from CMakeLists.txt filesFriedemann Kleint2023-02-101-5/+3
| | | | | | | Pick-to: 6.5 Change-Id: I8720313b2bc9cf9312a1f1a3d40171e1b2c8a257 Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-08-231-1/+1
| | | | | | | Task-number: QTBUG-105718 Change-Id: Ica4da2b513a5c8f58b9f955e5cdabb92bbf5f48a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Add license headers to cmake filesLucie Gérard2022-07-071-0/+3
| | | | | | | | | | | | | 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: Ic3d0ab6a3e3a32ce0bab59074242c0e17c6965dd Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* CMake: Fix finding bundled svg with an in-tree examples buildAlexandru Croitor2022-03-101-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When Qt is configure with -qt-zlib (like our Windows configs in CI) we create a QtZlibPrivate target and install it. QtSvg depends on this targets. When building examples in-tree (not as external projects) find_package(Qt6Svg) in the example projects will call find_dependency(Qt6Zlib). Currently that will fail with Found package configuration file: lib/cmake/Qt6ZlibPrivate/Qt6ZlibPrivateConfig.cmake but it set Qt6ZlibPrivate_FOUND to FALSE so package "Qt6ZlibPrivate" is considered to be NOT FOUND. Reason given by package: Target "Qt6::ZlibPrivate" was not found. Possibly due to QT_NO_CREATE_TARGETS being set to TRUE It's true, we set QT_NO_CREATE_TARGETS to FALSE when configuring examples, to prevent duplicate target creation. But the Zlib target was not created, because we didn't find_package it explicitly before configuring examples. Work around it by explicitly looking for the package before examples are built. Pick-to: 6.2 6.3 Change-Id: If5c474d62a2939bc32373b2e92d3151f377f51bc Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* CMake: Bump almost all cmake_minimum_required calls to 3.16Alexandru Croitor2021-09-221-1/+1
| | | | | | | | | | | | | 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. Change-Id: Id1a29c5a857b02e739dc6f796ff44b3e8856428c Pick-to: 6.2 Task-number: QTBUG-95018 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Remove unneeded CMake variable assignmentsJoerg Bornemann2021-06-141-8/+0
| | | | | | | | | | | | 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: Ibe6affb6840ead2377216c8331909b8a39d06dcc Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Use fixed qt_add_resource BASE argumentJoerg Bornemann2021-05-201-0/+3
| | | | | | | | Pick-to: 6.1 Task-number: QTBUG-86726 Change-Id: Ib2d2c13754ca2aef8ea419181215140f348eb6b6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake: Fix no-widgets buildAlexandru Croitor2020-10-211-2/+2
| | | | | | Task-number: QTBUG-86053 Change-Id: I356d9b551209a2870e9484112658d0470d056a85 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* CMake: Disable usage of CMake API compatibility wrappersAlexandru Croitor2020-10-011-0/+5
| | | | | | | | | 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: I631565e8284250f14a88779b1a9b19b75830ca41 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* CMake: Regenerate projects before API changeAlexandru Croitor2020-09-221-1/+2
| | | | | | | Task-number: QTBUG-86815 Change-Id: I2b5975cc1995518f1995955d9b655ab26e764ad0 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Regenerate projectsAlexandru Croitor2019-11-151-3/+5
| | | | | | Change-Id: Ie5198bc76688e40170a8b0a401435f97898bb818 Reviewed-by: Qt CMake Build Bot Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Bump minimum CMake version to 3.15.0 as it is done in qtbaseAlexandru Croitor2019-08-271-1/+1
| | | | | | | | | We decided this in a workshop a while ago, where we noticed that the find_dependency() macro was broken in regards to finding additional components. 3.15.0 was the version that fixed it. Change-Id: I38822caec9ffb3dfc935f507d70811a34c16dd3e Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Search for Xml package and check for the Xml target for a testAlexandru Croitor2019-07-031-0/+1
| | | | | | | | This fixes the CMake configuration to succeed if the Xml package is not built. Change-Id: I062ef1dc70c3eef286eaadb62a5fe6b7c827f3db Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Merge remote-tracking branch 'origin/wip/qt6' into wip/cmakeAlexandru Croitor2019-06-171-2/+2
| | | | Change-Id: Icb0da709c1cb8d2bdc2f33edfe656b7821cb148a
* Use qt_build_repo() to simplify top-level CMakeLists.txtSimon Hausmann2019-05-211-15/+1
| | | | | Change-Id: Ic120895d1789db29f4218fcf6e01bacb8af3e13a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Use the new BuildInternals packageAlexandru Croitor2019-05-151-1/+1
| | | | | | | | | | The Qt BuildInternals package is now the one providing the qt_build_repo macros. Task-number: QTBUG-75580 Change-Id: I6ee84a0be70699c0934e7570bd69b97b93fced0e Reviewed-by: Kevin Funk <kevin.funk@kdab.com> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Use the new macros introduced in qtbase for building qtsvgAlexandru Croitor2019-05-151-18/+2
| | | | | | | | This cleans up the top-level CMakeLists.txt file. Task-number: QTBUG-75580 Change-Id: I094d9d63937664b98b5ccfb624ffc4aa91859fe7 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* cmake: Initial CMake build system supportKevin Funk2019-05-031-0/+41
Task-number: QTBUG-74135 Done-With: Alexandru Croitor <alexandru.croitor@qt.io> Done-With: Liang Qi <liang.qi@qt.io> Change-Id: I81fdc3d06f53e78182352214ef4687924dfc6fb6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>