{"id":15136946,"url":"https://github.com/htfy96/cpp-boilerplate","last_synced_at":"2026-03-09T08:01:56.194Z","repository":{"id":86701924,"uuid":"80218877","full_name":"htfy96/cpp-boilerplate","owner":"htfy96","description":"A post-modern boilerplate for C++ project, built on Cmake and Conan with Catch \u0026 Spdlog","archived":false,"fork":false,"pushed_at":"2018-11-19T03:05:59.000Z","size":23,"stargazers_count":27,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"v2","last_synced_at":"2025-10-23T11:41:05.928Z","etag":null,"topics":["boilerplate","cmake","conan","cpp","cpp-boilerplate"],"latest_commit_sha":null,"homepage":"","language":"CMake","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/htfy96.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":"2017-01-27T15:27:01.000Z","updated_at":"2024-06-23T08:09:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"31873089-eba4-4d1e-8bf7-b648e9a369c7","html_url":"https://github.com/htfy96/cpp-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/htfy96/cpp-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htfy96%2Fcpp-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htfy96%2Fcpp-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htfy96%2Fcpp-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htfy96%2Fcpp-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/htfy96","download_url":"https://codeload.github.com/htfy96/cpp-boilerplate/tar.gz/refs/heads/v2","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htfy96%2Fcpp-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30287446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["boilerplate","cmake","conan","cpp","cpp-boilerplate"],"created_at":"2024-09-26T06:42:02.752Z","updated_at":"2026-03-09T08:01:56.158Z","avatar_url":"https://github.com/htfy96.png","language":"CMake","readme":"# cpp-boilerplate\nA modern boilerplate for C++ project, built on Cmake, Conan with Catch and spdlog.\n\n**Now you are browsing the `v2` branch! See differences below**\n\n[![Travis](https://img.shields.io/travis/htfy96/cpp-boilerplate.svg?style=flat-square)](https://travis-ci.org/htfy96/cpp-boilerplate)\n[![Project Status: WIP - Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](http://www.repostatus.org/badges/latest/wip.svg)](http://www.repostatus.org/#wip)\n[![license](https://img.shields.io/github/license/htfy96/cpp-boilerplate.svg?style=flat-square)](https://github.com/htfy96/cpp-boilerplate/blob/v2/LICENSE)\n\n\n## Test matrix\n\n| Distribution | Compiler | `CMAKE_BUILD_TYPE` |  Status  |\n|--------------|----------|--------------------|----------|\n| Ubuntu 18.04 | `g++-6`| `Debug`             | ![Status](https://travis-matrix-badges.herokuapp.com/repos/htfy96/cpp-boilerplate/branches/v2/1) |\n| Ubuntu 18.04 | `g++-6`| `Release`             | ![Status](https://travis-matrix-badges.herokuapp.com/repos/htfy96/cpp-boilerplate/branches/v2/2) |\n| Ubuntu 18.04 | `g++-7`| `Debug`             | ![Status](https://travis-matrix-badges.herokuapp.com/repos/htfy96/cpp-boilerplate/branches/v2/3) |\n| Ubuntu 18.04 | `g++-7`| `Release`             | ![Status](https://travis-matrix-badges.herokuapp.com/repos/htfy96/cpp-boilerplate/branches/v2/4) |\n| Ubuntu 18.04 | `clang++-6`| `Debug`             | ![Status](https://travis-matrix-badges.herokuapp.com/repos/htfy96/cpp-boilerplate/branches/v2/5) |\n| Ubuntu 18.04 | `clang++-6`| `Release`             | ![Status](https://travis-matrix-badges.herokuapp.com/repos/htfy96/cpp-boilerplate/branches/v2/6) |\n\n## How to use this\n\n1. Download this project: `git clone --recursive https://github.com/htfy96/cpp-boilerplate.git`\n2. Change `example` in filenames/namespaces under `src/`, `test/` into `your_project`\n3. Change `CMakeLists.txt`: `example` -\u003e `your_project`\n4. Change `.travis.yml`: `example` -\u003e `your_project`\n5. Change `README.md`: `cpp-boilerplate` -\u003e `your_project`\n6. Enable Travis-CI at https://travis-ci.org\n7. Push \u0026 Enjoy it!\n\n### Build\n[Install Conan first](https://docs.conan.io/en/latest/installation.html)\n\n```\nmkdir -p build\ncd build\nconan -s build_type=Debug --build=missing -s compiler.stdlib=libstdc++11 ..\n# For alternative compiler configuration:\n# conan -s build_type=Debug -s compiler.stdlib=libstdc++11 --build=missing \\\n#   -s compiler=gcc -s compiler.version=6 ..\n#   OR\n# Use Conan configurations (https://docs.conan.io/en/latest/getting_started.html#building-with-other-configurations)\n# and specify with conan -pr PATH ..\ncmake -Dexample-build_tests=ON \\ \n    -DCMAKE_BUILD_TYPE=debug ..\n# For alternative compiler:\n# cmake -Dexample-build_tests=ON \\\n# -DCMAKE_BUILD_TYPE=RelWithDebInfo \\\n# -DCMAKE_C_COMPILER=gcc-6 \\\n# -DCMAKE_CXX_COMPILER=g++-6 \\\n# ..\nmake clangformat # to format your files\nmake -j4\nctest # run tests\n```\n\n### Options\nOptions can be defined with `cmake ... -DOPTION_KEY=OPTION_VALUE`\n\n| Key | Possible Values | Effect |\n|-----|-----------------|--------|\n| `USE_GOLD_LINKER`     | `ON`/`OFF`    | Use GNU gold linker instead of ld. Only effect if gold is found.  |\n| `INCREMENT_LINK`      | `ON`/`OFF`    | Use gold linker's `--incremental` flag to speed up relink speed. Effective only when `USE_GOLD_LINKER` is specified. Note that this may disable many security protections like relto or PIE. Only use this when working on *Really* large project. |\n| `example-build_tests` | `ON`/`OFF`    | Build test or not                                         |\n| `CMAKE_BUILD_TYPE`    | `Debug`/`Release`/`RelWithDebInfo`    | Build type    |\n\n## Differences between `master` and v2\n- v2 is based on Ubuntu 18.04\n- v2 uses Conan instead of git submodule to manage dependencies\n- v2 uses g++-6/7 and clang++-6, while master uses g++-4.9/5 and clang++-3.8\n- v2 enforces minimal CMake version = 3.9, while master only enforces 3.1\n- v2 includes clang-tidy as an enforced check\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtfy96%2Fcpp-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtfy96%2Fcpp-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtfy96%2Fcpp-boilerplate/lists"}