{"id":15136980,"url":"https://github.com/davidace/cmaketemplate","last_synced_at":"2025-10-23T11:32:07.307Z","repository":{"id":97018633,"uuid":"212973439","full_name":"DavidAce/CMakeTemplate","owner":"DavidAce","description":"A template for building C++ projects using modern CMake with Conan integration","archived":false,"fork":false,"pushed_at":"2024-05-20T14:56:25.000Z","size":339,"stargazers_count":20,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T18:38:45.903Z","etag":null,"topics":["cmake","conan","cpp17","h5pp"],"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/DavidAce.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":"2019-10-05T09:21:02.000Z","updated_at":"2025-01-17T08:55:30.000Z","dependencies_parsed_at":"2024-02-07T16:28:36.224Z","dependency_job_id":"9fce5730-80dc-4283-8725-598b863d116e","html_url":"https://github.com/DavidAce/CMakeTemplate","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidAce%2FCMakeTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidAce%2FCMakeTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidAce%2FCMakeTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidAce%2FCMakeTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavidAce","download_url":"https://codeload.github.com/DavidAce/CMakeTemplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237821708,"owners_count":19371811,"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":["cmake","conan","cpp17","h5pp"],"created_at":"2024-09-26T06:42:26.718Z","updated_at":"2025-10-23T11:32:01.927Z","avatar_url":"https://github.com/DavidAce.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Ubuntu 22.04](https://github.com/DavidAce/CMakeTemplate/actions/workflows/ubuntu-22.04.yml/badge.svg)](https://github.com/DavidAce/CMakeTemplate/actions/workflows/ubuntu-22.04.yml)\n\n# CMake Template\nA template for building C++ projects using modern CMake with dependencies handled by Conan.\n\n## Features\n- Unit testing with CTest \n- Conan integration for dependencies\n\n## Requirements\n- C++17 compiler. Tested with\n    - GNU GCC version 12,\n    - LLVM Clang version 15\n- CMake version 3.24 or above.\n- conan version 2 **(Recommended)**\n\n## Dependencies\nBy default, the direct dependencies are:\n- [h5pp](https://github.com/DavidAce/h5pp) For fast and simple binary storage (includes hdf5, eigen, spdlog and fmt)\n- [Eigen3](http://eigen.tuxfamily.org/)  For linear algebra\n- [fmt](https://github.com/fmtlib/fmt)  For string formatting\n- [spdlog](https://github.com/gabime/spdlog)  For logging\n\nThese dependencies are installed automatically when using the bundled CMake Presets `release-conan` or `debug-conan`.\n\nNote that `h5pp` itself has the same dependencies, so they should already be present if `h5pp` was installed previously.\n\n\n## Compatibility\nThis template has only been tested in Linux environments.\n\n\n## Usage with CMake Presets\nBuild as any regular out-of-source CMake project after installing the dependencies above.\n\nUse the bundled CMake Presets to opt-in to automatic dependency installation with conan.\n\n#### Step 1: Install conan\n\n    pip install conan\n    conan profile detect\n\n#### Step 2: Clone CMakeTemplate and list its presets\nOpen a terminal and run\n\n    git clone https://github.com/DavidAce/CMakeTemplate.git\n    cd CMakeTemplate\n    cmake --list-presets\n    -------------------------------------------------------\n    \u003e    Available configure presets:\n    \u003e\n    \u003e      \"release-conan\" - Release|conan package manager\n    \u003e      \"debug-conan\"   - Debug|conan package manager\n\n#### Step 3: Configure and build\nSelect a preset listed in the previous step, and run\n\n    cmake --preset=release-conan\n    cmake --build --preset=release-conan\n\nThese commands configure the project and builds the executable at `./build/release-conan/CMT`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidace%2Fcmaketemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidace%2Fcmaketemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidace%2Fcmaketemplate/lists"}