-
Notifications
You must be signed in to change notification settings - Fork 10
/
appveyor.yml
96 lines (84 loc) · 2.97 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
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build}
branches:
only:
- develop
- test_attributes
skip_commits:
message: /\[skip ci\]|\[ci skip\]|\[skip appveyor\]|\[ci appveyor\]/
files:
- .travis*
- data/
- '*.md'
clone_folder: c:\projects\myproject
# fetch repository as zip archive
shallow_clone: true
image:
- Visual Studio 2017
configuration:
- Release
environment:
CMAKE_TOOLCHAIN_FILE: -DCMAKE_TOOLCHAIN_FILE="C:\tools\vcpkg\scripts\buildsystems\vcpkg.cmake"
BOOST_ROOT: C:\Libraries\boost_1_67_0
CGAL_DIR: C:\CGAL\build
matrix:
- arch: x64
build:
parallel: true
verbosity: minimal
# skip unsupported combinations
init:
- echo %arch%
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
- if "%arch%"=="x64" (set TARGET_PLATFORM= Win64)
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set GENERATOR="Visual Studio 15 2017%TARGET_PLATFORM%" && set QT_DIR="C:\Qt\5.10.1\msvc2017_64\lib\cmake\Qt5")
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (set GENERATOR="Visual Studio 14 2015%TARGET_PLATFORM%" && set QT_DIR="C:\Qt\5.10.1\msvc2015_64\lib\cmake\Qt5")
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" (set GENERATOR="Visual Studio 12 2013%TARGET_PLATFORM%" && set QT_DIR="C:\Qt\5.8\msvc2013_64\lib\cmake\Qt5")
- echo %GENERATOR%
- echo %QT_DIR%
install:
- vcpkg remove --outdated --recurse
- vcpkg install --recurse
zlib
eigen3
tinyxml2
mpir
mpfr
--triplet %arch%-windows
- appveyor DownloadFile https://github.com/CGAL/cgal/releases/download/releases/CGAL-4.13/CGAL-4.13.zip -FileName CGAL.zip
- 7z x CGAL.zip > nul
- move c:\projects\myproject\CGAL-4.13 c:\CGAL
- cd c:\CGAL
- md build
- cd build
- cmake -Wno-dev -Wno-deprecated -G %GENERATOR% .. %CMAKE_TOOLCHAIN_FILE%
-DWITH_CGAL_Qt5=OFF
-DWITH_demos=OFF
-DWITH_examples=OFF
-DWITH_CGAL_ImageIO=TRUE
-DQt5_DIR=%QT_DIR%
- cmake --build . --config "%CONFIGURATION%" -- /verbosity:minimal
- set PATH=%PATH%;%CGAL_DIR%\bin\%CONFIGURATION%
- cd c:\projects\myproject
build_script:
- git clone -b develop --depth=1 https://github.com/cgogn/CGoGN_2
- cd CGoGN_2
- md build
- cd build
- cmake -Wno-dev -Wno-deprecated -G %GENERATOR% .. %CMAKE_TOOLCHAIN_FILE%
-DCMAKE_SUPPRESS_REGENERATION=1
-DQt5_DIR=%QT_DIR%
- cmake --build . --config "%CONFIGURATION%" -- /verbosity:minimal
- cmake --build . --config "%CONFIGURATION%" --target INSTALL -- /verbosity:minimal
- cd ../..
- md build
- cd build
- cmake -Wno-dev -Wno-deprecated -G %GENERATOR% ../ %CMAKE_TOOLCHAIN_FILE%
-DCMAKE_SUPPRESS_REGENERATION=1
-DCMAKE_PREFIX_PATH="C:\Program Files\CGoGN"
-DQt5_DIR=%QT_DIR%
- cmake --build . --config "%CONFIGURATION%" -- /verbosity:minimal
- cmake --build . --config "%CONFIGURATION%" --target INSTALL -- /verbosity:minimal