of_cmake_config/README.en.md

21 lines
788 B
Markdown
Raw Normal View History

2022-04-11 06:11:23 +00:00
# of_cmake_config
[中文](README.md) | [English](README.en.md)
2022-04-11 06:11:23 +00:00
#### Description
2022-04-11 06:44:18 +00:00
This project is used to generate CMakeLists.txt for OpenFOAM project.
2022-04-11 06:11:23 +00:00
#### Installation
2022-04-11 06:44:18 +00:00
0. Activate OpenFOAM environment:
- Using alias `of2012clang` or `of2012clangdebug`
- source directly: `source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc WM_COMPILER=Clang ...`
1. Get this project: `git clone https://gitee.com/xfygogo/of_cmake_config.git of_cmake_config`
2. Install: `cd of_cmake_config && ./install`
2022-04-11 06:11:23 +00:00
#### Instructions
2022-04-11 06:44:18 +00:00
1. Activate OpenFOAM environment
2022-08-28 16:10:53 +00:00
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`.
2024-09-10 05:39:06 +00:00
[video demo](demo/occ_demo.gif)