{"id":43295947,"url":"https://github.com/h-waldschmidt/cmake-vcpkg-template","last_synced_at":"2026-02-01T19:06:47.151Z","repository":{"id":195169186,"uuid":"692394826","full_name":"h-waldschmidt/cmake-vcpkg-template","owner":"h-waldschmidt","description":"Template for integrating vcpkg into a CMake project","archived":false,"fork":false,"pushed_at":"2024-09-12T18:18:49.000Z","size":34,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-13T07:27:58.860Z","etag":null,"topics":["cmake","cpp","template","vcpkg"],"latest_commit_sha":null,"homepage":"","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/h-waldschmidt.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":"2023-09-16T10:52:02.000Z","updated_at":"2024-07-28T14:32:49.000Z","dependencies_parsed_at":"2023-09-16T20:58:07.467Z","dependency_job_id":"7487f83f-4e03-4b4d-bec9-93aed38d450c","html_url":"https://github.com/h-waldschmidt/cmake-vcpkg-template","commit_stats":null,"previous_names":["h-waldschmidt/cmake-vcpkg-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/h-waldschmidt/cmake-vcpkg-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h-waldschmidt%2Fcmake-vcpkg-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h-waldschmidt%2Fcmake-vcpkg-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h-waldschmidt%2Fcmake-vcpkg-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h-waldschmidt%2Fcmake-vcpkg-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h-waldschmidt","download_url":"https://codeload.github.com/h-waldschmidt/cmake-vcpkg-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h-waldschmidt%2Fcmake-vcpkg-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28986545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T18:17:03.387Z","status":"ssl_error","status_checked_at":"2026-02-01T18:16:57.287Z","response_time":56,"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":["cmake","cpp","template","vcpkg"],"created_at":"2026-02-01T19:06:47.093Z","updated_at":"2026-02-01T19:06:47.143Z","avatar_url":"https://github.com/h-waldschmidt.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmake-vcpkg-template\n[![cpp-linter](https://github.com/h-waldschmidt/cmake-vcpkg-template/actions/workflows/lint.yml/badge.svg)](https://github.com/h-waldschmidt/cmake-vcpkg-template/actions/workflows/lint.yml)\n[![codecov](https://codecov.io/gh/h-waldschmidt/cmake-vcpkg-template/graph/badge.svg?token=ECSMrHzpIn)](https://codecov.io/gh/h-waldschmidt/cmake-vcpkg-template)\n\nTemplate for integrating vcpkg into a CMake project\nAlso includes multiple presets for building and activates compiler warnings.\n\nMake sure `ninja` is installed for building.\n\n## Cloning/Updating a repository which uses this template\n\nRemember to recursively clone the repository to include `vcpkg`.\n\n```\ngit clone --recursive https://github.com/h-waldschmidt/cmake-vcpkg-template.git\n```\n\nTo update the `vcpkg` submodule do:\n\n```\ngit submodule update --remote --merge\n```\n\n## Building\n\n1. `cmake --preset Debug`\n2. `cmake --build --preset Debug`\n\n## Coverage\n\n1. `cmake --preset DebugTest`\n2. `cmake --build --preset DebugTest --target coverage`\n\n## Docker\n\nTODO:\n\n## Presets\n\n1. **Debug:** Compile with debug information and no optimizations.\n2. **RelWithDebInfo:** Compile with debug information and optimizations.\n3. **Release:** Compile without debug information and with optimizations.\n4. **DebugTest** Similar to `Debug` but with an additional `${PROJECT_NAME}_test` target, which runs all defined tests. Also adds `coverage` target, which generates HTML code coverage report.\n5. **ReleaseTest** Same as `DebugTest`, but with optimizations and without debug information.\n\n## Adding Dependencies\n\n1. Check if dependencey is available with [vcpkg](https://vcpkg.io/en/packages)\n2. Add dependency to `vcpkg.json`\n3. Add corresponding lines to `CMakeLists.txt` (usually `find_package` and `target_link_libraries`)\n4. Rebuild\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh-waldschmidt%2Fcmake-vcpkg-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh-waldschmidt%2Fcmake-vcpkg-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh-waldschmidt%2Fcmake-vcpkg-template/lists"}