-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
jobs: | ||
- job: vs2017_build | ||
displayName: Windows VS2017 Build | ||
timeoutInMinutes: 0 | ||
pool: | ||
vmImage: 'vs2017-win2016' | ||
strategy: | ||
matrix: | ||
x86: | ||
PLATFORM: 'x86' | ||
ARCHITECTURE: 'x86' | ||
x64: | ||
PLATFORM: 'x64' | ||
ARCHITECTURE: 'x86_amd64' | ||
variables: | ||
BUILD_DIR: '$(Agent.WorkFolder)\build' | ||
VCPKG_DIR: '$(Agent.WorkFolder)\vcpkg' | ||
VCVARSALL: '%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat' | ||
CONFIGURATION: 'Release' | ||
steps: | ||
- script: | | ||
call "%VCVARSALL%" %ARCHITECTURE% | ||
git clone https://github.com/microsoft/vcpkg --depth 1 %VCPKG_DIR% | ||
echo.set(VCPKG_BUILD_TYPE release)>> %VCPKG_DIR%\triplets\%PLATFORM%-windows.cmake | ||
%VCPKG_DIR%\bootstrap-vcpkg.bat | ||
%VCPKG_DIR%\vcpkg.exe version | ||
displayName: Bootstrap vcpkg | ||
- script: | | ||
call "%VCVARSALL%" %ARCHITECTURE% | ||
%VCPKG_DIR%\vcpkg.exe install boost-system boost-filesystem boost-thread boost-date-time boost-iostreams boost-chrono boost-asio boost-dynamic-bitset boost-foreach boost-graph boost-interprocess boost-multi-array boost-ptr-container boost-random boost-signals2 eigen3 flann gtest qhull --triplet %PLATFORM%-windows | ||
%VCPKG_DIR%\vcpkg.exe list | ||
displayName: Install Dependencies | ||
- script: | | ||
call "%VCVARSALL%" %ARCHITECTURE% | ||
set PATH=%VCPKG_DIR%\installed\%PLATFORM%-windows\bin;%PATH% | ||
mkdir %BUILD_DIR% && cd %BUILD_DIR% | ||
cmake $(Build.SourcesDirectory) -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe -DCMAKE_TOOLCHAIN_FILE=%VCPKG_DIR%\scripts\buildsystems\vcpkg.cmake -DVCPKG_APPLOCAL_DEPS=OFF -DPCL_BUILD_WITH_BOOST_DYNAMIC_LINKING_WIN32=ON -DPCL_BUILD_WITH_FLANN_DYNAMIC_LINKING_WIN32=ON -DPCL_BUILD_WITH_QHULL_DYNAMIC_LINKING_WIN32=ON -DBUILD_global_tests=ON | ||
displayName: 'CMake Configuration' | ||
- script: cd %BUILD_DIR% && cmake --build . --config %CONFIGURATION% | ||
displayName: 'Build Library' | ||
- script: cd %BUILD_DIR% && ctest -C %CONFIGURATION% -V | ||
displayName: 'Run Unit Tests' |