Go to file
Zhuo Yang c156383deb 添加默认可执行权限 2022-08-30 15:11:04 +08:00
.gitee Initial commit 2022-04-11 06:11:23 +00:00
demo 删除冗余代码;添加occ脚本 2022-08-29 00:10:53 +08:00
.gitignore 基础版 2022-04-11 14:44:18 +08:00
LICENSE Initial commit 2022-04-11 06:11:23 +00:00
README.en.md 删除冗余代码;添加occ脚本 2022-08-29 00:10:53 +08:00
README.md 删除冗余代码;添加occ脚本 2022-08-29 00:10:53 +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.en.md

of_cmake_config

中文 | 英文

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://gitee.com/xfygogo/of_cmake_config.git of_cmake_config
  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