Copy volk.dll when building on Windows

This commit is contained in:
Howard Su 2020-10-23 17:06:10 +08:00
parent 6262c64daa
commit 2df185e340

View File

@ -22,6 +22,7 @@ target_link_libraries(sdrpp PRIVATE sdrpp_core)
# Copy dynamic libs over # Copy dynamic libs over
if (MSVC) if (MSVC)
add_custom_target(do_always ALL xcopy /s \"$<TARGET_FILE_DIR:sdrpp_core>\\*.dll\" \"$<TARGET_FILE_DIR:sdrpp>\" /Y) add_custom_target(do_always ALL xcopy /s \"$<TARGET_FILE_DIR:sdrpp_core>\\*.dll\" \"$<TARGET_FILE_DIR:sdrpp>\" /Y)
add_custom_target(do_always_volk ALL xcopy /s \"C:/Program Files/PothosSDR/bin\\volk.dll\" \"$<TARGET_FILE_DIR:sdrpp>\" /Y)
endif (MSVC) endif (MSVC)
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")