forked from zenustech/zeno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·47 lines (43 loc) · 1.53 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[ "$1" ] && [ $1 = Debug ] && flag="Debug" || flag="Release"
echo $flag
cmake -B build -DCMAKE_BUILD_TYPE=$flag \
-DZENO_MULTIPROCESS=ON \
-DZENO_WITH_zenvdb:BOOL=ON \
-DZENO_SYSTEM_OPENVDB=OFF \
-DZENO_WITH_ZenoFX:BOOL=ON \
-DZENO_ENABLE_OPTIX:BOOL=ON \
-DZENO_WITH_FBX:BOOL=ON \
-DZENO_WITH_MeshSubdiv:BOOL=ON \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
# cmake -B build -DCMAKE_BUILD_TYPE=Release \
# -DZENO_WITH_ZenoFX:BOOL=ON \
# -DZENO_ENABLE_OPTIX:BOOL=ON \
# -DZENO_SYSTEM_OPENVDB=OFF \
# -DZENO_WITH_zenvdb:BOOL=ON \
# -DZENOFX_ENABLE_OPENVDB:BOOL=ON \
# -DZENOFX_ENABLE_LBVH:BOOL=ON \
# -DZENO_WITH_FastFLIP:BOOL=ON \
# -DZENO_WITH_FEM:BOOL=ON \
# -DZENO_WITH_Rigid:BOOL=ON \
# -DZENO_WITH_cgmesh:BOOL=ON \
# -DZENO_WITH_oldzenbase:BOOL=ON \
# -DZENO_WITH_TreeSketch:BOOL=ON \
# -DZENO_WITH_Skinning:BOOL=ON \
# -DZENO_WITH_Euler:BOOL=ON \
# -DZENO_WITH_Functional:BOOL=ON \
# -DZENO_WITH_LSystem:BOOL=ON \
# -DZENO_WITH_mesher:BOOL=ON \
# -DZENO_WITH_Alembic:BOOL=ON \
# -DZENO_WITH_FBX:BOOL=ON \
# -DZENO_WITH_DemBones:BOOL=ON \
# -DZENO_WITH_SampleModel:BOOL=ON \
# -DZENO_WITH_CalcGeometryUV:BOOL=ON \
# -DZENO_WITH_MeshSubdiv:BOOL=ON \
# -DZENO_WITH_Audio:BOOL=ON \
# -DZENO_WITH_PBD:BOOL=ON \
# -DZENO_WITH_GUI:BOOL=ON \
# -DZENO_WITH_ImgCV:BOOL=ON \
# -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build build --parallel $(nproc) \
# ln -s ./build/compile_commands.json ./
cp ./build/compile_commands.json ./