qt6-bb10/tests/auto/cmake/RunCMake
Cristian Le de0b702d31 Bundle Kitware's RunCMake test module
Introduce a new module `TestInternalPrivate`.

Kitware's RunCMake allows to create more granular unit tests using
`cmake -P` scripts instead of configuring, generating and building full
projects.

[ChangeLog][Third-Party Code]
Add upstream cmake's RunCMake test infrastructure module to
src/testinternal/3rdparty/cmake to aid in creation of cmake auto-tests.

Change-Id: I08cb7c6dc6f61bde29f176d58295f4f660b34ca8
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 39e7946cb6562c6f9b1baf5c44b1694922d0538e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 926abdce783542638dcfa59fa1f4218b9cf3a151)
2025-02-26 20:13:33 +00:00
..
CMakeLists.txt
README.md

README.md

RunCMake tests

These test suites use upstream CMake's RunCMake test module. See the upstream documentation on how to add tests.

A few minor adjustments we make:

  • add_RunCMake_test() function is defined in QtRunCMakeTestHelpers module instead of the CMakeLists.txt
  • CMAKE_CMAKE_COMMAND is replaced with CMAKE_COMMAND
  • CMAKE_MODULE_PATH points to CMAKE_CURRENT_LIST_DIR (indirectly via variable RunCMakeDir) instead of CMAKE_CURRENT_SOURCE_DIR

Update /cmake/3rdparty/cmake as needed. Last fetched from v3.31.5.