{"id":17382910,"url":"https://github.com/zhyang-dev/of_cmake_config","last_synced_at":"2026-02-09T11:33:11.208Z","repository":{"id":256342677,"uuid":"854989961","full_name":"zhyang-dev/of_cmake_config","owner":"zhyang-dev","description":"This repo can be used for OpenFOAM project to generate CMakeLists.txt, then compile_commands.json can be generated.","archived":false,"fork":false,"pushed_at":"2024-09-23T01:35:49.000Z","size":3556,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T05:11:17.252Z","etag":null,"topics":["openfoam","python","shell"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhyang-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-09-10T05:37:52.000Z","updated_at":"2024-09-29T08:01:13.000Z","dependencies_parsed_at":"2024-12-06T19:09:57.655Z","dependency_job_id":"45aecd98-2055-4e4c-b034-c775af6d2133","html_url":"https://github.com/zhyang-dev/of_cmake_config","commit_stats":null,"previous_names":["zhyang-dev/of_cmake_config"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhyang-dev/of_cmake_config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhyang-dev%2Fof_cmake_config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhyang-dev%2Fof_cmake_config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhyang-dev%2Fof_cmake_config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhyang-dev%2Fof_cmake_config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhyang-dev","download_url":"https://codeload.github.com/zhyang-dev/of_cmake_config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhyang-dev%2Fof_cmake_config/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268484056,"owners_count":24257634,"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-08-02T02:00:12.353Z","response_time":74,"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":["openfoam","python","shell"],"created_at":"2024-10-16T07:39:49.490Z","updated_at":"2026-02-09T11:33:11.143Z","avatar_url":"https://github.com/zhyang-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# of_cmake_config\n[中文](./README.zh_CN.md) | [English](./README.md)\n\n#### Introduction\nThis project is used to generate `CMakeLists.txt` for OpenFOAM projects.\n\n#### Installation Guide\n0. Activate the required OpenFOAM environment (otherwise the installation will fail).\n1. Obtain the project source code: `git clone --depth=1 https://github.com/zhyang-dev/of_cmake_config.git`\n2. Install: `cd of_cmake_config \u0026\u0026 ./install`\n\n#### Usage Instructions\n\n0. Activate the OpenFOAM environment.\n1. In the project's root directory:\n    - Run `ofCmakeConfig` to generate `CMakeLists.txt`.\n    - Or run `occ`, which will execute `ofCmakeConfig` and call `cmake -B build`, eventually generating `compile_commands.json` in the build directory.\n\n#### Testing Environment\n- `vscode` + `clangd`\n- `vim` + `coc-clangd`\n\nThe following demonstrates the second scenario based on the icoFoam case.  \n![Video Demo](demo/occ_demo.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhyang-dev%2Fof_cmake_config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhyang-dev%2Fof_cmake_config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhyang-dev%2Fof_cmake_config/lists"}