Add CMake to Appveyor

Build with “Visual Studio 12 (2013)” 32-bit Release DLLs
Other configurations can later be added in the appveyor.yml
This commit is contained in:
Tobias Taschner
2016-10-05 10:16:30 +02:00
parent e885de58eb
commit 9338e68371
2 changed files with 39 additions and 0 deletions

View File

@@ -26,6 +26,10 @@ environment:
- TOOLSET: msys2
MSYSTEM: MINGW32
- TOOLSET: cygwin
- TOOLSET: cmake
GENERATOR: 'Visual Studio 12'
SHARED: ON
CONFIGURATION: Release
clone_depth: 50

View File

@@ -44,3 +44,38 @@ perl -i".bak" -pe "s/^test -n \".DJDIR\"/#$&/" configure
bash -lc "g++ --version"
bash -lc "LDFLAGS=-L/usr/lib/w32api ./configure --disable-optimise --disable-shared && make -j3"
goto :eof
:cmake
echo --- Tools versions:
cmake --version | head -1
echo.
echo --- Generating project files
echo.
set WX_INSTALL_PATH=%HOMEDRIVE%%HOMEPATH%\wx_install_target
mkdir %WX_INSTALL_PATH%
mkdir build_cmake_vs
pushd build_cmake_vs
cmake -G "%GENERATOR%" -DCMAKE_INSTALL_PREFIX=%WX_INSTALL_PATH% -DwxBUILD_SHARED=%SHARED% ..
echo.
echo --- Starting the build
echo.
cmake --build . --config %CONFIGURATION%
echo.
echo --- Installing
echo.
cmake --build . --config %CONFIGURATION% --target install
popd
echo.
echo --- Test installed library
echo.
set WXWIN=%WX_INSTALL_PATH%
mkdir build_cmake_install_test
pushd build_cmake_install_test
echo --- Configure minimal sample
cmake -G "%GENERATOR%" ..\samples\minimal
echo --- Building minimal sample with installed library
cmake --build . --config %CONFIGURATION%
popd
goto :eof