Go to file
zhyang-dev 4a4cee9fcb
Update README.md
2024-09-11 22:29:37 +08:00
demo doc: change demo format 2024-09-10 13:39:06 +08:00
.gitignore 基础版 2022-04-11 14:44:18 +08:00
README.md Update README.md 2024-09-11 22:29:37 +08:00
README.zh_CN.md Update README.zh_CN.md 2024-09-11 22:29:24 +08:00
install refactor: re-implement the project, which should be available for both org and com version of OpenFOAM 2024-09-11 21:19:50 +08:00
occ 添加默认可执行权限 2022-08-30 15:11:04 +08:00
ofCmakeConfig fix: consider -fuse-ld 2024-09-11 22:20:39 +08:00
wmakelog2cmakelists.py fix: consider -fuse-ld 2024-09-11 22:20:39 +08:00

README.md

of_cmake_config

中文 | English

Introduction

This project is used to generate CMakeLists.txt for OpenFOAM projects.

Installation Guide

  1. Activate the required OpenFOAM environment (otherwise the installation will fail).
  2. Obtain the project source code: git clone --depth=1 https://github.com/zhyang-dev/of_cmake_config.git
  3. Install: cd of_cmake_config && ./install

Usage Instructions

  1. Activate the OpenFOAM environment.
  2. In the project's root directory:
    • Run ofCmakeConfig to generate CMakeLists.txt.
    • Or run occ, which will execute ofCmakeConfig and call cmake -B build, eventually generating compile_commands.json in the build directory.

Testing Environment

  • vscode + clangd
  • vim + coc-clangd

The following demonstrates the second scenario based on the icoFoam case.
Video Demo