Skip to content

Commit 2cdf910

Browse files
committed
Copy planloader.dll to planloader test dir
1 parent a1c5e72 commit 2cdf910

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

export/planloader/tests/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,14 @@ add_custom_command(
3232
message(
3333
STATUS "test data will be here: ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tests/data"
3434
)
35+
36+
# For Windows; copy planloader dll to the test executable directory so that it
37+
# can be found during test execution
38+
if(WIN32)
39+
add_custom_command(
40+
TARGET planloader_test
41+
POST_BUILD
42+
COMMAND ${CMAKE_COMMAND} -E copy
43+
$<TARGET_FILE:planloader>
44+
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tests")
45+
endif()

0 commit comments

Comments
 (0)