{"id":15136979,"url":"https://github.com/tarcisioe/cpp-template","last_synced_at":"2025-10-23T11:32:12.638Z","repository":{"id":83896680,"uuid":"247899218","full_name":"tarcisioe/cpp-template","owner":"tarcisioe","description":"A cookiecutter template for C++ projects.","archived":false,"fork":false,"pushed_at":"2021-08-14T23:28:30.000Z","size":23,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T18:38:43.703Z","etag":null,"topics":["conan","cookiecutter-template"],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tarcisioe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-03-17T06:49:11.000Z","updated_at":"2024-03-17T11:20:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbf8c67e-6ed7-4892-99ae-323a9a41834d","html_url":"https://github.com/tarcisioe/cpp-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarcisioe%2Fcpp-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarcisioe%2Fcpp-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarcisioe%2Fcpp-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarcisioe%2Fcpp-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarcisioe","download_url":"https://codeload.github.com/tarcisioe/cpp-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237821734,"owners_count":19371817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["conan","cookiecutter-template"],"created_at":"2024-09-26T06:42:26.690Z","updated_at":"2025-10-23T11:32:07.265Z","avatar_url":"https://github.com/tarcisioe.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"C++ Cookiecutter Template\n=========================\n\nThis is a [cookiecutter](https://github.com/cookiecutter/cookiecutter) template\nfor a C++ project using [CMake](https://cmake.org) and [Conan](conan.io).  It\nis heavily influenced by a [similar project by Jason\nTurner](https://github.com/lefticus/cpp_starter_project). The main differences\nare:\n\n- This is a cookiecutter template.\n- This has no sample code other than an empty `main.cpp`.\n- This has no default libraries already defined as dependencies.\n\n\nHow to use\n==========\n\nFirst, setup your own project with `cookiecutter`:\n\n```bash\ncookiecutter gh:tarcisioe/cpp-template\n```\n\nThis will create a directory with the name you defined in `project_slug`.\nEnter that directory, then define the dependencies you wish to download and\nbuild with `conan` in `CMakeLists.txt` by uncommenting `PACKAGES` and listing\nthem right after that:\n\n```cmake\nconan(\n    PACKAGES\n        fmt/0.6.10\n)\n```\n\nFinally, create your build directory:\n\n```bash\ncmake -B build\n```\n\nTo link your dependencies, add them to your targets (e.g. `main` in\n`src/CMakeLists.txt`) like this:\n\n```cmake\ntarget_link_libraries(\n    main\n        PUBLIC\n            (...)\n            CONAN_PKG::fmt\n)\n```\n\nThen, build your project:\n\n```bash\ncmake --build build\n```\n\nEnjoy your project with your dependencies, a compile database already generated,\nwarnings enabled, etc. :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarcisioe%2Fcpp-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarcisioe%2Fcpp-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarcisioe%2Fcpp-template/lists"}