harbor run -t LiteCoder/setup-cmake-cross-platformharbor download LiteCoder/setup-cmake-cross-platformSet up a cross-platform build environment for a C++ GUI framework named "Auto-GUI" that compiles on Linux (GCC), Windows (MinGW-w64), and macOS (Clang) using CMake.
Technical Requirements:
Required Files:
/app/CMakeLists.txt - Main CMake configuration file that:
/app/CMakePresets.json - CMake presets configuration with at least three presets:
linux-gcc - Linux build using GCCwindows-mingw - Windows build using MinGW-w64macos-clang - macOS build using Clang/app/src/main.cpp - Minimal C++ source file with a main function
Build Configuration Requirements:
Each preset in CMakePresets.json must specify:
generator: Appropriate build system (e.g., "Ninja", "Unix Makefiles")binaryDir: Build output directory (e.g., ${sourceDir}/build/${presetName})cacheVariables: Must include CMAKE_BUILD_TYPE and CMAKE_CXX_COMPILERSuccess Criteria:
The build environment should allow running:
cmake --preset <preset-name>
cmake --build --preset <preset-name>
Where <preset-name> is one of: linux-gcc, windows-mingw, or macos-clang.