Skip to content

更新cmake脚本, 便于支持modern cmake依赖方式#1774

Open
zjyhjqs wants to merge 15 commits into
guanzhi:masterfrom
zjyhjqs:build/modernize-cmake
Open

更新cmake脚本, 便于支持modern cmake依赖方式#1774
zjyhjqs wants to merge 15 commits into
guanzhi:masterfrom
zjyhjqs:build/modernize-cmake

Conversation

@zjyhjqs

@zjyhjqs zjyhjqs commented Dec 15, 2024

Copy link
Copy Markdown
  1. 支持find_package+target_link_libraries等modern cmake用法
  2. Windows使用官方检测宏, 无须手动加宏
  3. 删除部分默认已指定行为的多余脚本
  4. 更改MSVC检测方式, 同时支持clang-cl
  5. 对应更新文档, 使用现代用法
  6. 读取version.h获得版本号, 无需在代码与CMakeLists中重复设置

@zjyhjqs zjyhjqs force-pushed the build/modernize-cmake branch from 5ba82ed to 570dd2d Compare August 25, 2025 16:09
@zjyhjqs zjyhjqs force-pushed the build/modernize-cmake branch from 570dd2d to c163189 Compare October 3, 2025 04:13
@zjyhjqs zjyhjqs changed the title 更新cmake脚本, 便于支持find_package 更新cmake脚本, 便于支持modern cmake依赖方式 Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant