-
Notifications
You must be signed in to change notification settings - Fork 114
/
build_v140_x64.cmd
32 lines (31 loc) · 926 Bytes
/
build_v140_x64.cmd
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
@setlocal
@echo off
if NOT EXIST build_v140_x64 (
mkdir build_v140_x64
)
pushd build_v140_x64
:: Setup the environement for VS 2015 x64
call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64
:: configure
:: Build all packages
:: Use shared libraries when possible
cmake -G Ninja ^
-D CB_BUILD_ALL:BOOL=ON ^
-D ZLIB_LIB_PREFIX:STRING=caffe ^
-D ZLIB_BUILD_SHARED_LIBS:BOOL=ON ^
-D GFLAGS_BUILD_SHARED_LIBS:BOOL=ON ^
-D GLOG_BUILD_SHARED_LIBS:BOOL=ON ^
-D HDF5_BUILD_SHARED_LIBS:BOOL=ON ^
-D HDF5_LIB_PREFIX:STRING=caffe ^
-D BOOST_BUILD_SHARED_LIBS:BOOL=ON ^
-D LEVELDB_BUILD_SHARED_LIBS:BOOL=OFF ^
-D LMDB_BUILD_SHARED_LIBS:BOOL=OFF ^
-D OPENCV_BUILD_SHARED_LIBS:BOOL=ON ^
-D PROTOBUF_BUILD_SHARED_LIBS:BOOL=OFF ^
-D OPENBLAS_BUILD_SHARED_LIBS:BOOL=ON ^
-D SNAPPY_BUILD_SHARED_LIBS:BOOL=OFF ^
%~dp0
:: build
cmake --build .
popd
@endlocal