-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.appveyor.yml
46 lines (37 loc) · 1.17 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
image: Visual Studio 2017
platform:
- x64
configuration:
- Debug
- Release
environment:
matrix:
- SHARED: ON
- SHARED: OFF
VS_VERSION: Visual Studio 15 2017
QT_VERSION: 5.11
QT_COMPILED: msvc2017
INSTALL_DIR: "C:/projects/%APPVEYOR_PROJECT_NAME%/installed"
MODULES_DIR: "%INSTALL_DIR%/lib/cmake"
QT5MQTT: "%MODULES_DIR%/Qt5Mqtt"
install:
- set VS_FULL=%VS_VERSION% Win64
- set QTDIR=C:\Qt\%QT_VERSION%\%QT_COMPILED%_64
- set PATH=%PATH%;%QTDIR%\bin;
- cd /D %APPVEYOR_BUILD_FOLDER%
- mkdir installed
- git clone https://github.com/KurtPattyn/QtMqtt.git QtMqtt
- cd QtMqtt
- mkdir build
- cd build
- cmake -G "%VS_FULL%" -DCMAKE_BUILD_TYPE=%configuration% -DBUILD_SHARED_LIBS=%SHARED% -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% ..
- cmake --build . --target install --config %configuration%
before_build:
- cd /D %APPVEYOR_BUILD_FOLDER%
- mkdir build
- cd build
- cmake -G "%VS_FULL%" -DCMAKE_BUILD_TYPE=%configuration% -DBUILD_SHARED_LIBS=%SHARED% -DQt5Mqtt_DIR="%qt5mqtt%" ..
build_script:
- cmake --build . --target ALL_BUILD --config %configuration%
test_script:
- cmake --build . --target RUN_TESTS --config %configuration%