Add tests preset to CMake

Sets `wxBUILD_TESTS` to `ALL`.

Closes #25690.
This commit is contained in:
Blake-Madden
2025-08-17 23:45:16 +02:00
committed by Vadim Zeitlin
parent 77dd42f3c6
commit 54f61689b0
+34
View File
@@ -18,6 +18,13 @@
"wxBUILD_SAMPLES": "ALL"
}
},
{
"name": "with_tests",
"hidden": true,
"cacheVariables": {
"wxBUILD_TESTS": "ALL"
}
},
{
"name": "msw_base",
"description": "Base configuration for MSW",
@@ -38,6 +45,15 @@
"displayName": "MSW Visual Studio 2022 (with Samples)",
"generator": "Visual Studio 17 2022"
},
{
"name": "msw_vc17_tests",
"inherits": [
"with_tests",
"msw_base"
],
"displayName": "MSW Visual Studio 2022 (with Tests)",
"generator": "Visual Studio 17 2022"
},
{
"name": "msw_vc17",
"inherits": "msw_base",
@@ -63,6 +79,15 @@
"displayName": "macOS Xcode (with Samples)",
"generator": "Xcode"
},
{
"name": "osx_xcode_tests",
"inherits": [
"with_tests",
"osx_base"
],
"displayName": "macOS Xcode (with Tests)",
"generator": "Xcode"
},
{
"name": "osx_xcode",
"inherits": "osx_base",
@@ -78,6 +103,15 @@
"displayName": "macOS Make (with Samples)",
"generator": "Unix Makefiles"
},
{
"name": "osx_make_tests",
"inherits": [
"with_tests",
"osx_base"
],
"displayName": "macOS Make (with Tests)",
"generator": "Unix Makefiles"
},
{
"name": "osx_make",
"inherits": "osx_base",