Created
April 9, 2019 04:11
-
-
Save tratitude/1afcb121c649df37608bf9550a6d04b8 to your computer and use it in GitHub Desktop.
caffe-builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 "Visual Studio 14 2015 Win64" ^ | |
-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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment