{"id":18076208,"url":"https://github.com/scivision/cmakeutils","last_synced_at":"2025-04-05T19:43:00.589Z","repository":{"id":37952322,"uuid":"153544950","full_name":"scivision/cmakeutils","owner":"scivision","description":"Helpful scripts and modules for CMake, especially for scientific computing, HPC, and Fortran","archived":false,"fork":false,"pushed_at":"2025-02-27T18:05:07.000Z","size":511,"stargazers_count":23,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-12T16:51:52.910Z","etag":null,"topics":["cmake","cmake-modules","gnu-octave"],"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/scivision.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-18T01:22:22.000Z","updated_at":"2025-02-27T21:24:42.000Z","dependencies_parsed_at":"2023-01-21T12:17:40.173Z","dependency_job_id":null,"html_url":"https://github.com/scivision/cmakeutils","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Fcmakeutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Fcmakeutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Fcmakeutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Fcmakeutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scivision","download_url":"https://codeload.github.com/scivision/cmakeutils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393538,"owners_count":20931809,"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","gnu-octave"],"created_at":"2024-10-31T11:09:13.987Z","updated_at":"2025-04-05T19:43:00.571Z","avatar_url":"https://github.com/scivision.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CMake Utils\n\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1488084.svg)](https://doi.org/10.5281/zenodo.1488084)\n[![ci](https://github.com/scivision/cmakeutils/actions/workflows/ci.yml/badge.svg)](https://github.com/scivision/cmakeutils/actions/workflows/ci.yml)\n\nCMake is a powerful and easy to use build system for a wide variety of languages including:\n\n* C / C++\n* modern object-oriented Fortran 2008 / 2018\n* Python\n* [Matlab / GNU Octave](https://github.com/scivision/matlab-cmake-mex)\n\nIt's important to use a recent CMake version to be effective and clean with CMake script.\nThis can be done via the Python package described below, or from CMake \u003e= 2.8.12 by:\n\n```sh\ncmake -P scripts/install_cmake.cmake\n```\n\nNinja is recommended in general for use with CMake instead of Make:\n\n```sh\ncmake -P scripts/install_ninja.cmake\n```\n\n## convert CMake hierarchy .dot to SVG or PNG\n\nCMake plots\n[dependency graphs](https://www.scivision.dev/cmake-dependency-graph)\nfor programs like:\n\n```sh\ncmake -B build --graphviz=gfx/block.dot\n```\n\nThen convert to PNG or SVG like:\n\n```sh\npython graph.py ~/myprog/gfx\n```\n\nConvert the resulting index.html with the SVGs to PDF like:\n\n```sh\ncmake -Dhtml=~/myprog/gfx/index.html -P html2pdf.cmake\n```\n\n## CMake regular expressions\n\nCMake [regular expressions](https://cmake.org/cmake/help/latest/command/string.html#regex-specification)\nhave a distinct syntax tied to the origins of CMake syntax in the late 1990s.\nThe CMake regex syntax is not the same as Python, Perl, etc.\nWe give a few examples under [regex](./regex).\n\n## Build CMake\n\nTo compile CMake from source, for example on BSD or ARM 32-bit using existing CMake:\n\n```sh\ncmake -S build_cmake -B build\n```\n\nRequirements:\n\n* SSL library\n* C++ compiler\n* GNU Make or Ninja\n\n## Examples\n\n* Download with [git](./fetchgit) using [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html)\n* Download and extract [ZIP](./zip)\n* measure [system](./system) parameters with CMake. Note Cygwin reports really small RAM and zero virtual memory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscivision%2Fcmakeutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscivision%2Fcmakeutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscivision%2Fcmakeutils/lists"}