{"id":25935429,"url":"https://github.com/hengxin666/cpp-cmake-template","last_synced_at":"2025-06-21T23:34:08.213Z","repository":{"id":278932058,"uuid":"936730530","full_name":"HengXin666/Cpp-CMake-Template","owner":"HengXin666","description":"This is a cross-platform modern C++ CMake project template. It provides a default test workflow with ctest and Github.","archived":false,"fork":false,"pushed_at":"2025-02-24T03:58:56.000Z","size":165,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T23:33:07.506Z","etag":null,"topics":["cmake","cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HengXin666.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-21T15:33:11.000Z","updated_at":"2025-03-06T03:54:35.000Z","dependencies_parsed_at":"2025-05-30T03:31:32.076Z","dependency_job_id":"8d3b766b-2b70-4371-9ccd-f6be1f2d6eb0","html_url":"https://github.com/HengXin666/Cpp-CMake-Template","commit_stats":null,"previous_names":["hengxin666/cpp-cmake-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HengXin666/Cpp-CMake-Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HengXin666%2FCpp-CMake-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HengXin666%2FCpp-CMake-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HengXin666%2FCpp-CMake-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HengXin666%2FCpp-CMake-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HengXin666","download_url":"https://codeload.github.com/HengXin666/Cpp-CMake-Template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HengXin666%2FCpp-CMake-Template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261211676,"owners_count":23125542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmake","cpp"],"created_at":"2025-03-04T01:38:10.095Z","updated_at":"2025-06-21T23:34:03.196Z","avatar_url":"https://github.com/HengXin666.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cpp-CMake-Template\n\n这个是一个跨平台的现代的C++ CMake 项目模版.\n\n提供了以下支持:\n- `include`/`src`: 您可以在其中编写您的项目的内容, 其中`include`存放`.h/.hpp`头文件, `src`中存放`.cpp`源文件, 他们会被编译为 **静态库**, 以便在`examples`/`ctest`中使用.\n\n- `examples`: 您可以编写实例, 只需要在`./examples`文件夹中, 创建一个子文件夹, 并在子文件夹中, 编写一个`CMake`子项目即可. (示例: [examples/Example/CMakeLists.txt](./examples/Example/CMakeLists.txt))\n\n- `ctest`: 只需要在`./ctest`文件夹中创建`.cpp`文件, 然后就可以使用 [doctest](https://github.com/doctest/doctest) 来编写测试用例. (当然您直接书写`main`函数也没问题). (示例: [tests/ExamplesTest.cpp](./tests/ExamplesTest.cpp))\n\n- `Github workflows`:\n    - `ArchLinux.yaml`: 每次push到Github仓库后, 会自动使用Arch镜像, 以最新的gcc/clang版本对项目编译后执行`ctest`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhengxin666%2Fcpp-cmake-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhengxin666%2Fcpp-cmake-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhengxin666%2Fcpp-cmake-template/lists"}