set dll path before running tests, copy xlnt dll

This commit is contained in:
Thomas Fussell 2017-03-11 17:28:03 -05:00
parent 61bfdc2aee
commit c2365b3b31
3 changed files with 11 additions and 1 deletions

View File

@ -30,5 +30,6 @@ build:
verbosity: minimal
test_script:
- cd build/tests
- cd build\tests\Debug
- set PATH=C:\projects\xlnt\vcpkg\installed\x86-windows\debug\bin;%PATH%
- xlnt.test.exe

2
.gitignore vendored
View File

@ -11,3 +11,5 @@ node_modules/
#*#
*~
.DS_Store
__pycache__/
Win32/

View File

@ -93,5 +93,12 @@ add_custom_command(OUTPUT ${RUNNER}
DEPENDS ${TESTS}
COMMENT "Generating test runner ${RUNNER}")
if(NOT STATIC)
add_custom_command(TARGET xlnt.test POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:xlnt>
$<TARGET_FILE_DIR:xlnt.test>)
endif()
add_custom_target(generate-test-runner DEPENDS ${RUNNER})
add_dependencies(xlnt.test generate-test-runner)