forked from acados/acados
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
39 lines (34 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
36
37
38
39
branches:
only:
- master
cache:
- c:\dev\Eigen3\
environment:
matrix:
- BUILD_TYPE: Release
COMPILER: MinGW-w64
PLATFORM: x64
install:
- cmd: if not exist c:\dev\Eigen3\include\eigen3\Eigen\Core (
curl -L -o eigen-3.2.10.tar.gz https://gitlab.com/libeigen/eigen/-/archive/3.2.10/eigen-3.2.10.tar.gz &&
cmake -E tar zxf eigen-3.2.10.tar.gz &&
cd eigen-3.2.10 &&
mkdir build &&
cd build &&
cmake -G "Visual Studio 12" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="c:\dev\Eigen3" .. &&
cmake --build . --target install --config Release &&
cd ..\..
) else (echo Using cached Eigen3)
# NOTE: only static linking, i.e. via .lib file supported
# -D BUILD_SHARED_LIBS=OFF;
# extern "C" { would have to be added to subprojects
build_script:
- git submodule update --init --recursive
# MinGW files need to be at the beginning of the PATH
- set PATH=C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;%PATH%
# Workaround for CMake not wanting sh.exe on PATH for MinGW
- rm "C:\Program Files\Git\usr\bin\sh.exe"
- cmake -E make_directory build
- cmake -E chdir build cmake -DCMAKE_PREFIX_PATH=C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0 -D ACADOS_WITH_QPOASES=ON -D BLASFEO_TARGET=GENERIC -D HPIPM_TARGET=GENERIC -D BUILD_SHARED_LIBS=OFF -D ACADOS_EXAMPLES=ON -D ACADOS_UNIT_TESTS=ON -DEIGEN3_INCLUDE_DIR="C:\dev\Eigen3\include\eigen3" -G "MinGW Makefiles" ..
- cmake --build build --config Release
- cmake -E chdir build ctest --output-on-failure