Fixed copying the DLLs to the test directory

Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
This commit is contained in:
Otavio Rodolfo Piske 2017-02-03 15:31:49 +01:00
parent 7a66543ec2
commit ee26be0c52
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
FILE(GLOB dlls ${CMAKE_BINARY_DIR}/src/*.dll)
FILE(GLOB dlls ${CMAKE_BINARY_DIR}/../src/*.dll)
MESSAGE(STATUS "Files to copy: ${dlls}. From: ${CMAKE_BINARY_DIR}")
FOREACH(dll ${dlls})
MESSAGE(STATUS, "Copying dll runtime file ${CMAKE_BINARY_DIR}/src/${dll} to runtime dir ${CMAKE_BINARY_DIR}/test")
FILE(COPY ${dlls} DESTINATION ${CMAKE_BINARY_DIR}/test)
MESSAGE(STATUS "Copying dll runtime file ${dll} to runtime dir ${CMAKE_BINARY_DIR}")
FILE(COPY ${dll} DESTINATION ${CMAKE_BINARY_DIR})
ENDFOREACH(dll)