(AppVeyor) Trying to run unit tests properly from windows

This commit is contained in:
Luis Díaz Más 2017-10-10 17:00:56 +02:00 committed by Luis Diaz Mas
parent 3f53588de7
commit f9fab45163
2 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,10 @@ include(CheckFunctionExists)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_MACOSX_RPATH ON)
if (APPLE)

View File

@ -25,7 +25,9 @@ build_script:
- cmd: cmake -G "Visual Studio 14 2015 Win64" -T "host=x64" -DEXIV2_ENABLE_XMP=ON -DEXIV2_ENABLE_NLS=OFF -DEXIV2_ENABLE_PNG=ON -DEXIV2_ENABLE_WEBREADY=ON -DEXIV2_ENABLE_CURL=ON -DEXIV2_BUILD_UNIT_TESTS=ON -DCMAKE_INSTALL_PREFIX=install ..
- cmd: cmake --build . --config Release
- cmd: cmake --build . --target install
- cmd: bin/Release/unit_tests
- cmd: cd bin
- cmd: dir
- cmd: unit_tests.exe
cache:
- envs # Conan installation