forked from patrikhuber/eos
-
Notifications
You must be signed in to change notification settings - Fork 19
/
appveyor.yml
35 lines (28 loc) · 1.57 KB
/
appveyor.yml
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
environment:
home: C:\projects
cmake: C:\projects\cmake-3.10.1-win64-x64\bin\cmake.exe
version: '{branch}-{build}'
os: Visual Studio 2017
install:
# Get all submodules, since AppVeyor doesn't clone with '--recursive':
- cmd: git submodule update --init --recursive # inside the repository directory
# Get a recent CMake and our dependencies (Eigen, OpenCV, Boost):
- cmd: cd %home%
- ps: wget https://cmake.org/files/v3.10/cmake-3.10.1-win64-x64.zip -OutFile cmake.zip
- cmd: 7z x cmake.zip -o"C:\projects" -y > nul # will extract to cmake-3.10.1-win64-x64\
- cmd: '%cmake% --version'
# Get OpenCV (my pre-built binaries of 3.3.0 for VS2017.3):
- ps: wget "https://drive.google.com/uc?export=download&id=1SZpZ4AnEeTKMqFE-rHWuO6XyrzbaiSIx" -OutFile opencv-3.4.0_vc19.12.25834_release.rar
- cmd: mkdir C:\projects\opencv
- cmd: 7z x opencv-3.4.0_vc19.12.25834_release.rar -o"C:\projects\opencv" -y > nul
# Using Boost 1.64.0 from AppVeyor (C:\Libraries\boost_1_64_0)
before_build: # We're still in %home%
- cmd: mkdir build
- cmd: cd build
- cmd: '%cmake% -G "Visual Studio 15 Win64" -DOpenCV_DIR=C:\projects\opencv -DBOOST_ROOT=C:\Libraries\boost_1_64_0 -DBOOST_LIBRARYDIR=C:\Libraries\boost_1_64_0\lib64-msvc-14.0 -DCMAKE_INSTALL_PREFIX=..\install -DEOS_BUILD_EXAMPLES=on -DEOS_BUILD_UTILS=on -DEOS_GENERATE_PYTHON_BINDINGS=on -DPYTHON_EXECUTABLE:path=C:\Python36-x64\python.exe ..\eos'
build:
project: C:\projects\build\eos.sln
after_build: # We're still in %home%\build
- cmd: '%cmake% --build . --target INSTALL --config Release'
configuration:
- Release