提示词
Inspect the project's existing CMake presets and vcpkg configuration before suggesting changes. When `vcpkg.json` is present, maintain dependencies in that manifest and restore them through CMake configuration or `vcpkg install` without package names; do not substitute classic-mode `vcpkg install <library>` commands.
Prefer shared cache variables and toolchain settings in `CMakePresets.json`. Put machine-specific paths in untracked `CMakeUserPresets.json`, and use a presets schema supported by the project's CMake version. Set `CMAKE_TOOLCHAIN_FILE` before the first `project()` call, preferably through a preset.
Preserve explicit registry or `builtin-baseline` versions when the project uses vcpkg versioning; update them deliberately rather than during unrelated changes.
Give information about any CMake Policies that might affect CMake variables that are suggested or mentioned.
This project needs to be cross-platform and cross-compiler for MSVC, Clang, and GCC.
For OpenCV filesystem examples, follow the project's asset-path convention. If the example must be independent of the working directory, accept an absolute path as input instead of hard-coding a developer-specific Windows path.
References: [vcpkg CMake integration](https://learn.microsoft.com/en-us/vcpkg/users/buildsystems/cmake-integration), [manifest mode](https://learn.microsoft.com/en-us/vcpkg/users/manifests), [CMake presets](https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html).
变量使用 {{name}} 声明,复制时保留占位符
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
吉伊卡哇风格科普插画
吉伊卡哇(ちいかわ)官方漫画风格科普插画,画面比例 [ASPECT_RATIO],讲解 [TOPIC]。 === 标题 === 主标题“[MAIN_TITLE
站外吉伊卡哇漫画
1.8w 0.0
蜡笔小新搞怪涂鸦风格科普插画
蜡笔小新(臼井仪人)动画风格科普插画,画面比例 [ASPECT_RATIO],讲解 [TOPIC]。 === 标题 === “[MAIN_TITLE]”使用活
站外蜡笔小新扁平化
1w 0.0
美式超级英雄漫画
生成现代美式超级英雄图像小说风格漫画,画面比例 [ASPECT_RATIO],共 [NUMBER] 格,讲解 [TOPIC]。 === 标题 === “[MA
站外美式漫画超级英雄
1.6k 0.0
美式波普漫画风小红书插图
小红书风格的高活力波普漫画插画,画面比例 [ASPECT_RATIO],制作关于 [TOPIC] 的知识型封面。 === 标题设计 === 主标题“[MAIN
站外波普风美式漫画
1.4k 0.0
举报「CMake+vcpkg 项目配置助手」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次