Fix for windows
This commit is contained in:
parent
fc0b3f9e6e
commit
ad4d87abc3
@ -217,25 +217,11 @@ if (WIN32)
|
|||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
# Copy mock-server test scripts into the build so they ship with the archive
|
# Copy mock-server test scripts into the build so they ship with the archive
|
||||||
set(_MOCK_DIR "${CMAKE_CURRENT_SOURCE_DIR}/tests/mock_server")
|
add_custom_command(TARGET ARC POST_BUILD
|
||||||
set(_MOCK_FILES
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||||
"${_MOCK_DIR}/mock_server.py"
|
"${CMAKE_CURRENT_SOURCE_DIR}/tests/mock_server"
|
||||||
"${_MOCK_DIR}/gen_mock_data.py"
|
"$<TARGET_FILE_DIR:ARC>/tests/mock_server"
|
||||||
"${_MOCK_DIR}/gen_fetch_transactions.py"
|
|
||||||
"${_MOCK_DIR}/inject_random.py"
|
|
||||||
"${_MOCK_DIR}/run.sh"
|
|
||||||
"${_MOCK_DIR}/inject.sh"
|
|
||||||
"${_MOCK_DIR}/README.md"
|
|
||||||
"${_MOCK_DIR}/WINDOWS.md"
|
|
||||||
"${_MOCK_DIR}/seed_profile.example.json"
|
|
||||||
"${_MOCK_DIR}/setup.ps1"
|
|
||||||
)
|
)
|
||||||
foreach(_f ${_MOCK_FILES})
|
|
||||||
add_custom_command(TARGET ARC POST_BUILD
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E make_directory "$<TARGET_FILE_DIR:ARC>/tests/mock_server"
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${_f}" "$<TARGET_FILE_DIR:ARC>/tests/mock_server/"
|
|
||||||
)
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
# Copy Tesseract, Leptonica, and their transitive dependency DLLs
|
# Copy Tesseract, Leptonica, and their transitive dependency DLLs
|
||||||
file(GLOB _tesseract_dlls "${VCPKG_BIN_DIR}/tesseract*.dll"
|
file(GLOB _tesseract_dlls "${VCPKG_BIN_DIR}/tesseract*.dll"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user