mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
set dll path before running tests, copy xlnt dll
This commit is contained in:
parent
61bfdc2aee
commit
c2365b3b31
|
@ -30,5 +30,6 @@ build:
|
||||||
verbosity: minimal
|
verbosity: minimal
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- cd build/tests
|
- cd build\tests\Debug
|
||||||
|
- set PATH=C:\projects\xlnt\vcpkg\installed\x86-windows\debug\bin;%PATH%
|
||||||
- xlnt.test.exe
|
- xlnt.test.exe
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -11,3 +11,5 @@ node_modules/
|
||||||
#*#
|
#*#
|
||||||
*~
|
*~
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
__pycache__/
|
||||||
|
Win32/
|
|
@ -93,5 +93,12 @@ add_custom_command(OUTPUT ${RUNNER}
|
||||||
DEPENDS ${TESTS}
|
DEPENDS ${TESTS}
|
||||||
COMMENT "Generating test runner ${RUNNER}")
|
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_custom_target(generate-test-runner DEPENDS ${RUNNER})
|
||||||
add_dependencies(xlnt.test generate-test-runner)
|
add_dependencies(xlnt.test generate-test-runner)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user