Caffe-Builder is a set of CMake scripts (using CMake's ExternalProject) that automate the build and installation of popular C/C++ open source libraries on Windows using microsoft toolchain.
Using this project will (hopefully) make building, installing and using open source libraries on Windows much easier.
Make sure CMake, Git and Ninja are in your path.
cmd> cd %caffe_builder_root%
cmd> git clone https://github.com/willyd/caffe-builder.git caffe-builder
Execute the following command to build the libraries
cmd> build_v120_x64.cmd
Alternatively you can execute one command after the other :: Create a build directory cmd> mkdir build && cd build :: Setup the VS compiler cmd> call "%VS120COMNTOOLS%....\VC\vcvarsall.bat" amd64 :: This will build all libraries that were configured to build with the BUILD_* options (see below) cmd> ninja :: Or alternatively cmd> ninja :: You can execute this command to list all possible targets cmd> ninja -t targets
The libraries will be installed in build\libraries. Alongside the libraries a series of Find*.cmake files will be installed and a caffe-builder-config.cmake file will be installed too. You can replace 120
with 140
in the commands above to build with VS 2015.
cmd> cd myproject
cmd> mkdir build
cmd> cd build
cmd> cmake -G <generator name> -C %caffe_builder_root%\caffe-builder\build\libraries\caffe-build-config.cmake
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。