Skip to content

Instantly share code, notes, and snippets.

@sprhawk
Created February 23, 2021 15:22
Show Gist options
  • Save sprhawk/50e81217e885e468be12aec981662d65 to your computer and use it in GitHub Desktop.
Save sprhawk/50e81217e885e468be12aec981662d65 to your computer and use it in GitHub Desktop.
Generate Makefile for ProjectChrono
ROOT_DIR=$PWD
echo $ROOT_DIR
cd build_chrono; cmake -BRelWithDebInfo \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX="$ROOT_DIR/local" \
-DENABLE_MODULE_COSIMULATION=ON \
-DENABLE_MODULE_PYTHON=ON \
-DPYTHON_EXECUTABLE="/usr/local/bin/python3" \
-DENABLE_MODULE_MKL=ON \
-DENABLE_MODULE_PARALLEL=ON \
-DENABLE_TBB=ON \
-DENABLE_MODULE_DISTRIBUTED=OFF \
-DBLAZE_DIR=$ROOT_DIR/blaze \
-DTHRUST_INCLUDE_DIR=$ROOT_DIR/thrust \
-DENABLE_MODULE_IRRLICHT=ON \
-DIRRLICHT_LIBRARY="/usr/local/Cellar/irrlicht/1.8.4/lib/libIrrlicht.a" \
-DENABLE_MODULE_CASCADE=ON \
-DCASCADE_ROOT="/usr/local/Cellar/opencascade/7.4.0_1" \
-DCASCADE_INCLUDE_DIR="/usr/local/Cellar/opencascade/7.4.0_1/include/opencascade" \
-DENABLE_MODULE_OPENGL=ON \
-DENABLE_MODULE_POSTPROCESS=ON \
-DENABLE_MODULE_VEHICLE=ON \
"$ROOT_DIR/chrono"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment