Go to file
Zhuo Yang 412142f88e doc: update repo link 2024-09-10 13:57:23 +08:00
.gitee Initial commit 2022-04-11 06:11:23 +00: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 doc: update repo link 2024-09-10 13:57:23 +08:00
README.zh_CN.md doc: update repo link 2024-09-10 13:57:23 +08:00
install 添加默认可执行权限 2022-08-30 15:11:04 +08:00
occ 添加默认可执行权限 2022-08-30 15:11:04 +08:00
ofCmakeConfig 删除冗余代码;添加occ脚本 2022-08-29 00:10:53 +08:00

README.md

of_cmake_config

中文 | English

Description

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

Installation

  1. Activate OpenFOAM environment:
    • Using alias of2012clang or of2012clangdebug
    • source directly: source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc WM_COMPILER=Clang ...
  2. Get this project: git clone https://github.com/zhyang-dev/of_cmake_config.git
  3. Install: cd of_cmake_config && ./install

Instructions

  1. Activate OpenFOAM environment
  2. In project root path,
    • run ofCmakeConfig to generate CMakeLists.txt
    • or run occ, which is a wrapper of ofCmakeConfig script, to generate CMakeLists.txt and compile_commands.json.

video demo