Skip to content

Commit

Permalink
Copy runtime dlls on Windows
Browse files Browse the repository at this point in the history
Our test runner needs to find the pmp dlls. The easiest way to do this
is to copy all files of the pmp target to the test runner directory.
  • Loading branch information
dsieger committed Jul 23, 2021
1 parent a19997a commit 61b338e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/CMakeLists.txt
Expand Up @@ -34,3 +34,12 @@ add_dependencies(gtest_runner googletest)

# add runner as test
add_test(gtest_runner ${CMAKE_CURRENT_BINARY_DIR}/gtest_runner)

# copy dlls on windows
if(WIN32)
add_custom_command(
TARGET gtest_runner
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:pmp>
$<TARGET_FILE_DIR:gtest_runner>)
endif()

0 comments on commit 61b338e

Please sign in to comment.