{"id":16119129,"url":"https://github.com/benslabbert/cpp-googletest-cmake-example","last_synced_at":"2026-05-15T21:35:50.281Z","repository":{"id":101553207,"uuid":"206576888","full_name":"BenSlabbert/cpp-googletest-cmake-example","owner":"BenSlabbert","description":null,"archived":false,"fork":false,"pushed_at":"2019-09-06T09:40:33.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-25T03:29:20.877Z","etag":null,"topics":["cmake","cpp","docker","gcov"],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"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/BenSlabbert.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-05T13:57:15.000Z","updated_at":"2019-09-06T09:40:34.000Z","dependencies_parsed_at":"2023-06-13T00:20:57.531Z","dependency_job_id":null,"html_url":"https://github.com/BenSlabbert/cpp-googletest-cmake-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BenSlabbert/cpp-googletest-cmake-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSlabbert%2Fcpp-googletest-cmake-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSlabbert%2Fcpp-googletest-cmake-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSlabbert%2Fcpp-googletest-cmake-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSlabbert%2Fcpp-googletest-cmake-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenSlabbert","download_url":"https://codeload.github.com/BenSlabbert/cpp-googletest-cmake-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSlabbert%2Fcpp-googletest-cmake-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33080777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["cmake","cpp","docker","gcov"],"created_at":"2024-10-09T20:53:02.506Z","updated_at":"2026-05-15T21:35:50.263Z","avatar_url":"https://github.com/BenSlabbert.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CPP Googletest + spdlog cmake example\n\nThis is an example of including 2 external CMake projects ([googletest](https://github.com/google/googletest.git) and [spdlog](https://github.com/gabime/spdlog.git)).\n\nCMake will clone these repos and checkout the specified tags.\n\nAdditionally this also shows how to create your own static library to be used in the project.\n\nSee the [proxy](./proxy) `dir`, this is where we set up all the code to be used as a library in the [main](./cmd/main.cpp) program where we can now `#include \u003cproxy/MyClass.h\u003e` our classes.\n\nWe also have a example of using `gcov` as a custom target to run after all our tests.\n\nAs always (as there should be) check out the [Dockerfile](./Dockerfile) to see how to build this project.\n\n## Requirements\n\nMust have cmake \u003e 3.15\n\n## Build\n\nRun `cmake .` which will clone all the dependencies and build the project.\n\nSubsequently you can run `make`.\n\n## Output\n\nIn the `cmd/bin` dir there will be 2 binaries: `main` and `main_test`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenslabbert%2Fcpp-googletest-cmake-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenslabbert%2Fcpp-googletest-cmake-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenslabbert%2Fcpp-googletest-cmake-example/lists"}