of_cmake_config/README.md

21 lines
796 B
Markdown
Raw Normal View History

2022-04-11 06:11:23 +00:00
# of_cmake_config
2024-09-10 05:41:30 +00:00
[中文](./README.zh_CN.md) | [English](./README.md)
2022-04-11 06:11:23 +00:00
2024-09-10 05:41:30 +00:00
#### Description
This project is used to generate CMakeLists.txt for OpenFOAM project.
2022-04-11 06:11:23 +00:00
2024-09-10 05:41:30 +00:00
#### Installation
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
2024-09-10 05:41:30 +00:00
#### Instructions
2022-04-11 06:11:23 +00:00
2024-09-10 05:41:30 +00:00
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`.
2022-08-28 16:10:53 +00:00
2024-09-10 05:41:30 +00:00
![video demo](demo/occ_demo.gif)