Fix win32 linking and run test automatically in AppVayor

This commit is contained in:
Patrick Niklaus 2014-07-22 17:17:22 +02:00
parent 4722988bf0
commit 4d0571fd73
2 changed files with 5 additions and 0 deletions

View File

@ -123,7 +123,9 @@ if(CMAKE_BUILD_TYPE MATCHES Release)
endif (HAS_LTO_FLAG)
endif()
if (NOT WIN32)
add_definitions(-DBOOST_TEST_DYN_LINK)
endif()
# Configuring compilers
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")

View File

@ -41,6 +41,9 @@ build_script:
- nmake tests
- nmake benchmarks
- if "%APPVEYOR_REPO_BRANCH%"=="develop" (7z a %P%/osrm_%Configuration%.zip *.exe *.pdb %P%/libs/bin/*.dll -tzip)
- set PATH=%PATH%;c:/projects/osrm/libs/bin
- cd c:/projects/osrm/build
- datastructure-tests.exe
test: off