{"id":25746116,"url":"https://github.com/onurozuduru/cpp-project-template","last_synced_at":"2026-06-13T11:33:27.013Z","repository":{"id":223572845,"uuid":"757079448","full_name":"onurozuduru/cpp-project-template","owner":"onurozuduru","description":"Project template for C++ with CMake, Gtest and a build script","archived":false,"fork":false,"pushed_at":"2024-12-30T20:23:18.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T11:37:15.887Z","etag":null,"topics":["cpp","project-template"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onurozuduru.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}},"created_at":"2024-02-13T19:34:03.000Z","updated_at":"2025-02-16T19:41:46.000Z","dependencies_parsed_at":"2024-02-21T00:55:17.973Z","dependency_job_id":"f80b2468-2aa8-4326-9c9b-cb803a177a62","html_url":"https://github.com/onurozuduru/cpp-project-template","commit_stats":null,"previous_names":["onurozuduru/cpp-project-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/onurozuduru/cpp-project-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onurozuduru%2Fcpp-project-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onurozuduru%2Fcpp-project-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onurozuduru%2Fcpp-project-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onurozuduru%2Fcpp-project-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onurozuduru","download_url":"https://codeload.github.com/onurozuduru/cpp-project-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onurozuduru%2Fcpp-project-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34283390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cpp","project-template"],"created_at":"2025-02-26T11:29:56.894Z","updated_at":"2026-06-13T11:33:27.007Z","avatar_url":"https://github.com/onurozuduru.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cpp-project-template\nProject template for c++, includes a build script, example cmake files and [googletest](https://github.com/google/googletest) setup.\n\n![cpp-project-template.gif](https://github.com/onurozuduru/cpp-project-template/assets/2547436/3dd83ecc-a9ce-4942-a1bd-332f8b0715c9)\n\n## Create New Project\n\n`create_cpp_project.sh` copies the template to the given path and sets project name in cmake file.\nIt is possible to create link to the script under a directory under `$PATH`, by default `$HOME/.local/bin` is used.\n\n```bash\n# Give execute permission\nchmod +x create_cpp_project\n\n# Link script under ~/.local/bin for convenience\n./create_cpp_project.sh --install\n\n# Create new project\ncreate_cpp_project /path/to/new_project\n```\n\n## Run Devcontainer from Terminal\n\n```bash\n.devcontainer/start_with_devcontainer_cli.sh\n```\n\n## Template Structure\n\n```bash\nTemplateProject/\n├── .clang-format\n├── .clang-tidy\n├── .clangd\n├── .devcontainer\n│   ├── Dockerfile\n│   ├── devcontainer.json\n│   └── start_with_devcontainer_cli.sh\n├── .gersemirc\n├── .gitignore\n├── CMakeLists.txt\n├── build.sh\n├── exe\n│   ├── CMakeLists.txt\n│   ├── include\n│   │   └── logger.h\n│   └── source\n│       ├── logger.cpp\n│       └── main.cpp\n├── libs\n│   ├── CMakeLists.txt\n│   └── examplelib\n│       ├── CMakeLists.txt\n│       ├── include\n│       │   └── examplelib.h\n│       └── source\n│           └── examplelib.cpp\n└── test\n    ├── CMakeLists.txt\n    ├── libs\n    │   ├── CMakeLists.txt\n    │   └── examplelib\n    │       └── examplelib_test.cpp\n    └── mocks\n        ├── CMakeLists.txt\n        └── examplelibmock.hpp\n```\n\n## Project Build Script\n\nEach new project includes `build.sh` script to be able to build with CMake.\nThe script creates a folder named `build` under the project folder and able pass build type and build with or without tests.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonurozuduru%2Fcpp-project-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonurozuduru%2Fcpp-project-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonurozuduru%2Fcpp-project-template/lists"}