{"id":18736887,"url":"https://github.com/bitwizeshift/bit-cmake","last_synced_at":"2026-02-04T07:39:06.077Z","repository":{"id":81485330,"uuid":"80252775","full_name":"bitwizeshift/bit-cmake","owner":"bitwizeshift","description":"A collection of cmake modules that I make use of in projects","archived":false,"fork":false,"pushed_at":"2018-05-16T04:26:04.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T17:14:08.438Z","etag":null,"topics":["cmake","cmake-modules"],"latest_commit_sha":null,"homepage":null,"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/bitwizeshift.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":"2017-01-27T22:50:14.000Z","updated_at":"2018-05-16T04:26:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"3fc7fc59-bda2-4f76-a77b-78d4dbb1f652","html_url":"https://github.com/bitwizeshift/bit-cmake","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/bitwizeshift%2Fbit-cmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwizeshift%2Fbit-cmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwizeshift%2Fbit-cmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwizeshift%2Fbit-cmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitwizeshift","download_url":"https://codeload.github.com/bitwizeshift/bit-cmake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239611993,"owners_count":19668274,"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"],"created_at":"2024-11-07T15:22:52.426Z","updated_at":"2026-02-04T07:39:06.016Z","avatar_url":"https://github.com/bitwizeshift.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `bit::cmake`\n\n[![GitHub License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/bitwizeshift/bit-stl/master/LICENSE.md)\n\n## What is `bit::cmake`?\n\nThis is a small repo that contains some cmake build modules and toolchains to facilitate easier script writing.\nThese are used in various personal projects to promote writing c++ that follows proper coding standards\n\n## Modules\n\nThere are various modules available, as described below. For more information, refer to the documentation\nof each specific module. Documentation is in ReStructured Text format.\n\n### `AddIndependenceCheck.cmake`\n\nThis adds the cmake command `add_independence_check` which creates a custom library that generates a list of\nsource files that include each header individually.\nThe purpose of this is to ensure that each header in a public API requires no header-ordering to properly operate.\n\n### `AddTestExecutable.cmake`\n\nThis adds the cmake command `add_test_executable`. This is a small wrapper around `add_executable` that immediately\ninvokes the built binary as part of the build step. This allows chaining dependencies, and breaking builds on unit\ntest failures.\n\n### `CopyTargetProperties.cmake`\n\nThis adds the cmake command `copy_target_properties`. This allows copying values of each property from one target\nto another. This is especially useful when trying to image all arguments from a regular library onto an object\nlibrary\n\n### `CopyTarget.cmake`\n\nThis adds the cmake command `copy_target`. This copies each of the basic properties for that given visibility.\nFor example, `INTERFACE` will copy all the `INTERFACE_*` properties, `PRIVATE` will copy the normal properties,\nand `PUBLIC` will copy both.\n\n### `GitBuildInformation.cmake`\n\nThis adds the cmake command `git_build_information`. This provides an easy way of automatically incrementing\na minor and patch number based on the revision of the 'major' release.\n\nThough this is not as exact as a build number from a CI or one generated through SVN, it provides a decent\namount of uniqueness that can then be translated into a version header (see below)\n\n### `MakeVersionHeader.cmake`\n\nThis adds the cmake command `make_version_header`. This generates an easy version header when given the\nmajor, minor, patch, and build versions of the current library. Optionally a tag (e.g. branch name) can\nbe provided to given a unique version string identifier.\n\nThis is useful in conjunction with `get_build_information`, since all of these values can easily be\nextracted from it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwizeshift%2Fbit-cmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitwizeshift%2Fbit-cmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwizeshift%2Fbit-cmake/lists"}