831 B
831 B
of_cmake_config
介绍
本项目用于生成OpenFOAM项目的CMakeLists.txt
安装教程
- 激活OpenFOAM环境:
- 使用别名
of2012clang
orof2012clangdebug
- 直接source:
source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc WM_COMPILER=Clang ...
- 使用别名
- 获取该项目源码:
git clone https://gitee.com/xfygogo/of_cmake_config.git of_cmake_config
- 安装:
cd of_cmake_config && ./install
使用说明
- 激活OpenFOAM环境
- 在项目根目录下,
- 运行
ofCmakeConfig
,生成CMakeLists.txt
- 或运行
occ
,其包装了ofCmakeConfig
,除了生成CMakeLists.txt
,还会调用cmake,生成compile_commands.json
。
- 运行
测试环境
vscode
+clangd
vim
+coc-clangd