{"id":15158131,"url":"https://github.com/ethereum/cable","last_synced_at":"2025-10-07T11:30:34.527Z","repository":{"id":45771524,"uuid":"122989673","full_name":"ethereum/cable","owner":"ethereum","description":"Cable: CMake Bootstrap Library","archived":false,"fork":false,"pushed_at":"2023-02-25T20:28:03.000Z","size":139,"stargazers_count":37,"open_issues_count":3,"forks_count":29,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-15T15:52:00.567Z","etag":null,"topics":["cmake","cmake-modules","cmake-toolchains"],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ethereum.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":"2018-02-26T15:31:32.000Z","updated_at":"2024-11-02T13:49:18.000Z","dependencies_parsed_at":"2024-06-19T17:34:36.358Z","dependency_job_id":"be2ec92b-b48d-45e6-a315-4e394df027a8","html_url":"https://github.com/ethereum/cable","commit_stats":null,"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethereum%2Fcable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethereum%2Fcable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethereum%2Fcable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethereum%2Fcable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethereum","download_url":"https://codeload.github.com/ethereum/cable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235621551,"owners_count":19019519,"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","cmake-modules","cmake-toolchains"],"created_at":"2024-09-26T20:40:30.173Z","updated_at":"2025-10-07T11:30:29.214Z","avatar_url":"https://github.com/ethereum.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cable\n\n[![readme style: standard][readme style standard badge]][standard readme]\n\n\u003e Cable: CMake Bootstrap Library\n\nCable is a set of CMake modules and scripts containing common patterns used\nin CMake-based C++ projects. The design goal is to be pragmatic rather than\ngeneric so the number of provided options is minimal. The Cable modules are\nindependent and it is easy to use them individually.\n\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n- [Maintainer](#maintainer)\n- [License](#license)\n\n\n## Install\n\nThe suggested Cable location is `cmake/cable` relative to your project root directory.\n\n\n### With cable.cmake script\n\nCopy [cable.cmake](cable.cmake) script to your project.\nThen use it to download individual Cable CMake modules.\n\n```bash\n./cable.cmake install CableBuildType\n```\n\n\n### As git subtree\n\nAdding a dependency project as a [git subtree] is just a copy of the source code\ndone in a bit more systematic way.\n\nIf you are not familiar with managing dependencies with git subtree read the\n[Git subtree: the alternative to Git submodule][git subtree tutorial].\n\n#### To install\n\n```sh\ngit remote add cable https://github.com/ethereum/cable\ngit subtree add --prefix cmake/cable cable master --squash\n```\n\n#### To update\n\n```sh\ngit subtree pull --prefix cmake/cable cable master --squash\n```\n\n### As git submodule\n\nInclude the Cable library as [git submodule] in your project.\n\n```sh\ngit submodule add https://github.com/ethereum/cable cmake/cable\n```\n\n## Usage\n\nCable contains the `bootstrap.cmake` file that initializes the library.\nStart by including this file in your main `CMakeLists.txt` from the Cable \nsubmodule/subtree or any other location. The `bootstrap.cmake` must be included \nbefore the `project()` command. After that, you can include and use other\nCable modules.\n\n### Example\n\n```cmake\ncmake_minimum_required(VERSION 3.5)\n\ninclude(cmake/cable/bootstrap.cmake)\ninclude(CableBuildType)\n\nproject(tothemoon)\n\ncable_set_build_type(DEFAULT RelWithDebInfo CONFIGURATION_TYPES Debug Release RelWithDebInfo)\n```\n\n\n## Maintainer\n\nPaweł Bylica [@chfast]\n\n## License\n\nLicensed under the [Apache License, Version 2.0].\n\n\n[@chfast]: https://github.com/chfast\n[Apache License, Version 2.0]: LICENSE\n[git submodule]: https://git-scm.com/book/en/v2/Git-Tools-Submodules\n[git subtree]: https://github.com/git/git/blob/master/contrib/subtree/git-subtree.txt\n[git subtree tutorial]: https://www.atlassian.com/blog/git/alternatives-to-git-submodule-git-subtree\n[standard readme]: https://github.com/RichardLitt/standard-readme\n\n[readme style standard badge]: https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethereum%2Fcable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethereum%2Fcable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethereum%2Fcable/lists"}