{"id":19870346,"url":"https://github.com/alphaolomi/cpp11-cmake","last_synced_at":"2026-06-09T03:08:00.088Z","repository":{"id":99077667,"uuid":"219599290","full_name":"alphaolomi/cpp11-cmake","owner":"alphaolomi","description":"Building cpp11 with CMake and lcov","archived":false,"fork":false,"pushed_at":"2023-05-20T16:08:25.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T00:54:17.120Z","etag":null,"topics":["cmake","codecov","cpp","cpp11","lcov","lcov-report"],"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/alphaolomi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2019-11-04T21:23:04.000Z","updated_at":"2023-05-20T16:08:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"0dcf20e9-e930-45a7-8687-35d1e27d690a","html_url":"https://github.com/alphaolomi/cpp11-cmake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alphaolomi/cpp11-cmake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Fcpp11-cmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Fcpp11-cmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Fcpp11-cmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Fcpp11-cmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alphaolomi","download_url":"https://codeload.github.com/alphaolomi/cpp11-cmake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphaolomi%2Fcpp11-cmake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34089457,"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-09T02:00:06.510Z","response_time":63,"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":["cmake","codecov","cpp","cpp11","lcov","lcov-report"],"created_at":"2024-11-12T16:08:39.704Z","updated_at":"2026-06-09T03:08:00.074Z","avatar_url":"https://github.com/alphaolomi.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cpp11-example\n\n[![Build Status][travis-badge]][travis-link]\n[![codecov][codecov-badge]][codecov-link]\n[![MIT License][license-badge]](LICENSE.md)\n\n# Featues\n\n- C++ version: `C++11`\n- Build system: [`CMake`](https://cmake.org/)\n- C++ compiler: `g++`\n- Libraries: `STL` only\n- Code coverage report: [`lcov`](http://ltp.sourceforge.net/coverage/lcov.php) (note: it should show the code coverage is below 100%)\n- [`CodeCov`](https://codecov.io/) (code coverage is measured by CodeCov).\n- Source: multiple files\n\n## Prerequisites\n\nTo build the project you need to install `CMake`. ([Install instructions](https://cmake.org/install/))\nTo display a code coverage report in the console, install `lcov`. ([`Download lcov`](http://ltp.sourceforge.net/coverage/lcov.php), [`Instructions`](http://ltp.sourceforge.net/coverage/lcov/readme.php))\n\n## Guide\n\n1. Compile with code coverage instrumentation enabled [(GCC)](https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html).\n2. Execute the tests to generate the coverage data.\n3. (Optionally) generate and customize reports with `lcov`.\n4. Upload to CodeCov using the bash uploader.\n\n## Example details\n\nThis repo can serve as the starting point for a new project. The following is worth noticing:\n\n1. Use of a build script instead of putting the commands into `.travis.yml`\n\n- Allows local testing\n- Allows usage of `set -e` to error out with meaningfull messages on any command failure\n\n2. Separate testing source tree\n\n- Allows to easily enable/disable testing\n- Allows usage in parent projects (you don't want to build the tests if you are consumed)\n- You may want to exclude coverage of test files which is easier when they are in a separate folder.\n  Remember to use **full paths** for patterns (like `'*/tests/*'`)\n\n3. Use of travis cache to cache manually build 3rd-party dependencies (like boost)\n\n- Speeds up build\n- More can be added (e.g. `ccache`)\n- Those need to be excluded from coverage info too\n\n[1]: https://codecov.io/\n[travis-badge]: https://travis-ci.com/alphaolomi/cpp11-cmake.svg?branch=master\n[travis-link]: https://travis-ci.com/alphaolomi/cpp11-cmake/\n[travis-image]: https://github.com/alphaolomi/cpp11-cmake/blob/master/img/TravisCI.png\n[license-badge]: https://img.shields.io/badge/license-MIT-007EC7.svg\n[codecov-badge]: https://codecov.io/gh/alphaolomi/cpp11-cmake/branch/master/graph/badge.svg\n[codecov-link]: https://codecov.io/gh/alphaolomi/cpp11-cmake/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphaolomi%2Fcpp11-cmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falphaolomi%2Fcpp11-cmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphaolomi%2Fcpp11-cmake/lists"}