{"id":23086228,"url":"https://github.com/alexandersilvab/cmake-tools","last_synced_at":"2025-04-03T15:42:38.837Z","repository":{"id":126210865,"uuid":"202796894","full_name":"AlexanderSilvaB/cmake-tools","owner":"AlexanderSilvaB","description":"Automated tools to work with cmake","archived":false,"fork":false,"pushed_at":"2021-02-11T17:08:17.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T04:26:46.197Z","etag":null,"topics":["build","build-automation","build-management","build-system","build-tool","build-tools","builder","cmake","cmake-scripts","cmakelists","project","project-management","project-manager","project-template","project-templates","projects","tool","tools"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/AlexanderSilvaB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2019-08-16T20:44:21.000Z","updated_at":"2021-02-11T17:08:20.000Z","dependencies_parsed_at":"2023-08-14T12:15:08.358Z","dependency_job_id":null,"html_url":"https://github.com/AlexanderSilvaB/cmake-tools","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/AlexanderSilvaB%2Fcmake-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderSilvaB%2Fcmake-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderSilvaB%2Fcmake-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderSilvaB%2Fcmake-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexanderSilvaB","download_url":"https://codeload.github.com/AlexanderSilvaB/cmake-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247030858,"owners_count":20872193,"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":["build","build-automation","build-management","build-system","build-tool","build-tools","builder","cmake","cmake-scripts","cmakelists","project","project-management","project-manager","project-template","project-templates","projects","tool","tools"],"created_at":"2024-12-16T18:42:29.546Z","updated_at":"2025-04-03T15:42:38.817Z","avatar_url":"https://github.com/AlexanderSilvaB.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmake-tools\r\nAutomated tools to work with cmake\r\n\r\n### About\r\nThis is a collection of tools to make life easier when working with CMake to create C/C++ projects\r\n\r\n### Getting started\r\n\r\nAfter downloading the repository, run the 'install' with elevated permissions or manually (Only on Linux) add the 'cmake-' prefixed files the system path. \r\n\r\n##### Linux\r\n\r\n```bash\r\nchmod +x install.sh\r\nsudo ./install.sh\r\n```\r\n\r\n##### Windows\r\n\r\n```bash\r\n./install.bat\r\n```\r\n\r\nCreate a new folder with the desired project name and run cmake-create. The tool will ask some questions about the project and create the folders/files structure along with a file named '.cmake-project.json' which describes the project. At any time you can change the project structure running cmake-create again.\r\n\r\n```bash\r\nmkdir project\r\ncd project\r\ncmake-create\r\n```\r\n\r\nAfter editing the project files according to your needs, run cmake-build to compile the project. A folder called 'build' will be created and the project will be compiled inside this folder.\r\n\r\n```bash\r\ncmake-build\r\n```\r\n\r\nIf the compilation succeeds, run cmake-run to start running a project executable if available in the project.\r\n\r\n```bash\r\ncmake-run\r\n```\r\n\r\n### Requirements\r\nIn addition to CMake installed and added to the system path, these tools also need Python 2.7+ installed in path.\r\n\r\n### Tools\r\n* **cmake-create:**\r\nCreates a new project. You will be asked for a project name, the desired language and the libraries and executables for the project.\r\n```bash\r\ncmake-create\r\n```\r\n\r\n* **cmake-build:**\r\nBuilds the project inside a 'build' folder.\r\n```bash\r\ncmake-build\r\n```\r\n\r\n* **cmake-run:**\r\nRun an executable of the project. If called alone, the first declared executable will be runned, otherwise, run an executable named as the first parameter.\r\n```bash\r\ncmake-run\r\ncmake-run executableName\r\n```\r\n* **cmake-clear:**\r\nClears the project building structure. This tool basically deletes the compilation files for the whole project or specific libraries/executables.\r\n```bash\r\ncmake-clear\r\ncmake-clear executableName\r\ncmake-clear libraryName\r\n```\r\n\r\n### Contributing\r\n\r\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\r\n\r\n### Authors\r\n\r\n* **Alexander S Barbosa** - *Initial work* - [AlexanderSilvaB](https://github.com/AlexanderSilvaB)\r\n\r\nSee also the list of [contributors](https://github.com/AlexanderSilvaB/cmake-tools/contributors) who participated in this project.\r\n\r\n### License\r\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandersilvab%2Fcmake-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandersilvab%2Fcmake-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandersilvab%2Fcmake-tools/lists"}