{"id":13732422,"url":"https://github.com/mpusz/cmake-scripts","last_synced_at":"2025-09-18T00:05:03.656Z","repository":{"id":139724334,"uuid":"108961535","full_name":"mpusz/cmake-scripts","owner":"mpusz","description":"CMake scripts shared among other repositories","archived":false,"fork":false,"pushed_at":"2020-09-05T20:03:39.000Z","size":33,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T10:07:47.760Z","etag":null,"topics":[],"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/mpusz.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}},"created_at":"2017-10-31T07:41:39.000Z","updated_at":"2024-11-08T14:42:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"88d2f43c-34ab-4a9a-83d1-770776b0cf30","html_url":"https://github.com/mpusz/cmake-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mpusz/cmake-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpusz%2Fcmake-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpusz%2Fcmake-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpusz%2Fcmake-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpusz%2Fcmake-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpusz","download_url":"https://codeload.github.com/mpusz/cmake-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpusz%2Fcmake-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275685794,"owners_count":25509540,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-08-03T02:01:55.969Z","updated_at":"2025-09-18T00:05:03.610Z","avatar_url":"https://github.com/mpusz.png","language":"CMake","readme":"# cmake-scripts\n\nCommon CMake tools and wrappers to use in other repositories.\n\n## `scripts.cmake`\n\nA wrapper file including all other CMake modules:\n- `conan.cmake`\n- `install.cmake`\n- `static_analysis.cmake`\n- `warnings.cmake`\n\n## `conan.cmake`\n\n- `conan_init(generator)` - initializes CMake with data from Conan Package Manger (if present)\n- `conan_check_testing(test_framework)` - checks if Conan installed testing dependencies\n\n## `install.cmake`\n\n- `CMAKE_SCRIPTS_ROOT` - a path to scripts directory\n- `install_targets(targets...)` - marks provided targets for installation in typical destination directories\n- `configure_and_install(configure_in_file_path, namespace, version_compare_rules)` - creates CMake package\n     version and config files based on a provided template, and installs them together with\n     `${CMAKE_PROJECT_NAME}Targets` ``EXPORT` target.\n\n## `static_analysis.cmake`\n\n- `enable_clang_tidy()` - enable clang-tidy analysis\n- `enable_iwyu()` - enable Include What You Use\n\n## `warnings.cmake`\n\n- `set_warnings([TREAT_AS_ERRORS])` - very restrictive compilation warning flags settings for\n     Continuous Integration and local builds. It should not be used in the library project `CMakeLists.txt`\n     file to not force other users using this library to compile their projects with our flags or even worse\n     to modify their preset flags by our scripts.\n","funding_links":[],"categories":["Tools"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpusz%2Fcmake-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpusz%2Fcmake-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpusz%2Fcmake-scripts/lists"}