使用本项目的 CMake 工作流构建 xTools 或指定的 X_APP 目标。当用户要求编译、重新构建或生成打包产物时使用此技能。
69
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
当任务是编译此仓库、代码修改后重新构建或生成打包产物时,使用此技能。
X_APP 目标。CMAKE_PREFIX_PATH 指定 Qt MSVC 套件路径。C:/Qt/、D:/Qt/Qt/、D:/512/Qt/Qt/)搜索 Qt 版本。Tools/CMake/bin 或 Tools/CMake 子目录中。xTools。xTools_zip。参考命令:
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
cmake -S . -B build\my-build -G Ninja -DCMAKE_PREFIX_PATH=D:/Qt/Qt/6.10.3/msvc2022_64 -DCMAKE_BUILD_TYPE=Release
cmake --build build\my-build --target xTools
cmake --build build\my-build --target xTools_zip若用户要求构建特定 xApp,在配置时添加 -DX_APP=<名称>,例如:-DX_APP=xOscilloscope。
示例:
cmake -S . -B build\xoscilloscope -G Ninja -DCMAKE_PREFIX_PATH=D:/Qt/Qt/6.10.3/msvc2022_64 -DCMAKE_BUILD_TYPE=Release -DX_APP=xOscilloscope
cmake --build build\xoscilloscope --target xOscilloscope参考命令:
cmake -S . -B build/linux -G Ninja -DCMAKE_PREFIX_PATH=/path/to/Qt/6.10.3/gcc_64 -DCMAKE_BUILD_TYPE=Release
cmake --build build/linux --target xToolsLinux 打包目标(环境支持时):xTools_deb、xTools_appimage。
build/ 下已存在构建目录,不能直接复用,需先确认 Qt 版本和生成器是否匹配。ca34d5c
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.