Skip to content

Commit

Permalink
#39: Add developer build script
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrepebay committed Sep 20, 2023
1 parent 8e4a3f1 commit cdbf429
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dev-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

set -ex

# Paths
VT-TV_DIR="/path/to/vt-tv/source"
BUILD_DIR="/path/to/vt-tv/build"
VTK_DIR="/path/to/compiled/VTK"
JOBS="2" # for instance, modify as needed

mkdir -p "${BUILD_DIR}"
cd "${BUILD_DIR}"

# Remove CMakeCache for fresh build
# rm -rf CMakeCache.txt

cmake -B "${BUILD_DIR}" \
-DVTK_DIR="${VTK_DIR}" \
"${VT-TV_DIR}"

time cmake --build . --parallel -j"${JOBS}"

0 comments on commit cdbf429

Please sign in to comment.