forked from PointCloudLibrary/pcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
108 lines (101 loc) · 3.25 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
cache:
- C:\Tools\vcpkg\installed\
- C:\Tools\ninja\ninja.exe
configuration: Release
environment:
VCPKG_DIR: C:\Tools\vcpkg
NINJA_DIR: C:\Tools\ninja
GENERATOR: Ninja
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
PLATFORM: x86
VCVARSALL: '%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat'
ARCHITECTURE: x86
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
PLATFORM: x64
VCVARSALL: '%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat'
ARCHITECTURE: x86_amd64
#- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
# PLATFORM: x86
# VCVARSALL: '%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat'
# ARCHITECTURE: x86
#- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
# PLATFORM: x64
# VCVARSALL: '%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat'
# ARCHITECTURE: x86_amd64
init:
- cd %VCPKG_DIR%
- git pull
- echo.set(VCPKG_BUILD_TYPE release)>> %VCPKG_DIR%\triplets\%PLATFORM%-windows.cmake
- .\bootstrap-vcpkg.bat
- vcpkg version
- cd %APPVEYOR_BUILD_FOLDER%
install:
- vcpkg install
boost-system
boost-filesystem
boost-thread
boost-date-time
boost-iostreams
boost-chrono
boost-asio
boost-dynamic-bitset
boost-foreach
boost-graph
boost-interprocess
boost-multi-array
boost-ptr-container
boost-random
boost-signals2
eigen3
flann
qhull
gtest
--triplet %PLATFORM%-windows
- vcpkg list
- set PATH=%VCPKG_DIR%\installed\%PLATFORM%-windows\bin;%PATH%
- if not exist %NINJA_DIR%\ mkdir %NINJA_DIR%
- cd %NINJA_DIR%
- if not exist ninja.exe appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip
- if not exist ninja.exe 7z x ninja-win.zip
- set PATH=%NINJA_DIR%;%PATH%
build:
parallel: true
build_script:
# These tests will fails on Windows.
# Therefore, these tests are disabled until fixed.
# AppVeyor Log : https://ci.appveyor.com/project/PointCloudLibrary/pcl/build/1.0.267
# * test_2d
# * common_eigen
# * feature_rift_estimation
# * feature_cppf_estimation
# * feature_pfh_estimation
# * filters_sampling
# * io_grabbers
# * registration_api
- call "%VCVARSALL%" %ARCHITECTURE%
- cd %APPVEYOR_BUILD_FOLDER%
- mkdir build
- cd build
- cmake -G"%GENERATOR%"
-DCMAKE_C_COMPILER=cl.exe
-DCMAKE_CXX_COMPILER=cl.exe
-DCMAKE_TOOLCHAIN_FILE=%VCPKG_DIR%\scripts\buildsystems\vcpkg.cmake
-DVCPKG_APPLOCAL_DEPS=OFF
-DPCL_BUILD_WITH_BOOST_DYNAMIC_LINKING_WIN32=ON
-DPCL_BUILD_WITH_FLANN_DYNAMIC_LINKING_WIN32=ON
-DPCL_NO_PRECOMPILE=OFF
-DBUILD_apps=OFF
-DBUILD_examples=OFF
-DBUILD_global_tests=ON
-DBUILD_simulation=OFF
-DBUILD_tools=OFF
-DBUILD_tests_2d=OFF
-DBUILD_tests_common=OFF
-DBUILD_tests_features=OFF
-DBUILD_tests_filters=OFF
-DBUILD_tests_io=OFF
-DBUILD_tests_registration=OFF
..
- cmake --build . --config %CONFIGURATION%
- ctest -C %CONFIGURATION% -V