You could use CMakePresets.json file to specify a CMake Preset Kit.
Qt Creator would then use the information from the CMakePresets.json file and create a kit for you.
Something like:
{
"version": 4
},
"configurePresets": [
{
"name": "arm-gnu-toolchain",
"displayName": "Arm GNU GCC 13.2",
"generator": "Ninja",
"toolchainFile" : "C:/arm-gnu-toolchain-13.2/toolchain.cmake",
"cacheVariables": {
"CMAKE_C_COMPILER": "arm-none-eabi-gcc.exe",
"CMAKE_CXX_COMPILER": "arm-none-eabi-g++.exe"
}
}
]
}
See https://doc.qt.io/qtcreator/creator-build-settings-cmake-presets.html and various Qt Creator CMake blog entries for more details.