forked from cgogn/SCHNApps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
78 lines (66 loc) · 2.3 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
#---------------------------------#
# 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
- Debug
environment:
CMAKE_TOOLCHAIN_FILE: -DCMAKE_TOOLCHAIN_FILE="C:\tools\vcpkg\scripts\buildsystems\vcpkg.cmake"
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
--triplet %arch%-windows
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