forked from AcademySoftwareFoundation/openvdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_windows.sh
executable file
·35 lines (28 loc) · 975 Bytes
/
build_windows.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
#!/usr/bin/env bash
set -ex
VCPKG_ROOT="$1"; shift
CMAKE_EXTRA="$@"
mkdir build
cd build
# See the following regarding boost installation:
# https://github.com/actions/virtual-environments/issues/687
# https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md
# print version
cmake --version
cmake \
-G "Visual Studio 16 2019" -A x64 \
-DVCPKG_TARGET_TRIPLET="${VCPKG_DEFAULT_TRIPLET}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE="${VCPKG_ROOT}\scripts\buildsystems\vcpkg.cmake" \
-DOPENVDB_BUILD_BINARIES=ON \
-DOPENVDB_BUILD_VDB_PRINT=ON \
-DOPENVDB_BUILD_VDB_LOD=ON \
-DOPENVDB_BUILD_VDB_RENDER=ON \
-DOPENVDB_BUILD_VDB_VIEW=ON \
-DOPENVDB_BUILD_UNITTESTS=ON \
-DBOOST_ROOT="${BOOST_ROOT_1_72_0}" \
-DBOOST_INCLUDEDIR="${BOOST_ROOT_1_72_0}\boost\include" \
-DBOOST_LIBRARYDIR="${BOOST_ROOT_1_72_0}\lib" \
${CMAKE_EXTRA} \
..
cmake --build . --parallel 4 --config Release --target install