{"id":20619024,"url":"https://github.com/tessapower/template-cmake-project","last_synced_at":"2025-06-25T16:05:03.497Z","repository":{"id":188839765,"uuid":"416897236","full_name":"tessapower/template-cmake-project","owner":"tessapower","description":"A template CMake project for C++.","archived":false,"fork":false,"pushed_at":"2022-12-02T09:36:28.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T16:05:01.433Z","etag":null,"topics":["cmake","cpp","template"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tessapower.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-10-13T21:03:30.000Z","updated_at":"2022-12-02T09:34:26.000Z","dependencies_parsed_at":"2023-08-17T05:12:04.294Z","dependency_job_id":null,"html_url":"https://github.com/tessapower/template-cmake-project","commit_stats":null,"previous_names":["tessapower/template-cmake-project"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/tessapower/template-cmake-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessapower%2Ftemplate-cmake-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessapower%2Ftemplate-cmake-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessapower%2Ftemplate-cmake-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessapower%2Ftemplate-cmake-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tessapower","download_url":"https://codeload.github.com/tessapower/template-cmake-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tessapower%2Ftemplate-cmake-project/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261906774,"owners_count":23228348,"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","template"],"created_at":"2024-11-16T12:10:14.532Z","updated_at":"2025-06-25T16:05:03.478Z","avatar_url":"https://github.com/tessapower.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Template CMake Project\n\nThis is my standard template CMake project to use for C++ projects. I created \nthis so I don't need to always start from scratch each time I create a new C++ \nproject. This template consists of a library `my_lib` and a basic entry point, \n`my_app.cpp`, that makes use of it. All functionality is contained within \n`my_lib` to make it easy to test. Tests for `my_lib` functionality are found in \nthe `tests` directory.\n\n### Directory Structure\n\n```text\n.\n├── app\n│   ├── CMakeLists.txt\n│   └── my_app.cpp\n├── cmake-build-debug\n├── CMakeLists.txt\n├── include\n│   └── my_lib\n│       └── my_lib.h\n├── README.md\n├── src\n│   ├── CMakeLists.txt\n│   └── my_lib\n│       └── my_lib.cpp\n└── tests\n    ├── addition_tests.cpp\n    ├── CMakeLists.txt\n    └── subtraction_tests.cpp\n```\n\nEach directory (except for `include`) contains a `CMakeLists.txt` that takes \ncare of structuring and linking its files together to be used by the rest of \nthe project. The `CMakeLists.txt` in the root directory takes care of including\nthese subdirectories as part of the project.\n\nThe structure and layout was derived from \n\"[An Introduction to Modern CMake](https://cliutils.gitlab.io/modern-cmake/)\".\n\n- CMake Version: `3.25`\n- C++ Standard:  `C++20`\n- Testing Framework: `GoogleTest`\n\n### Build Configurations\n\n- `my_app`: run the main program\n- `All Ctest`: run the tests for `my_lib` (using _GoogleTest_)\n- Most of the other build configurations are not necessary for small projects,\nbut are created by CTest by default.\n\nFeel free to use :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftessapower%2Ftemplate-cmake-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftessapower%2Ftemplate-cmake-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftessapower%2Ftemplate-cmake-project/lists"}