cmake: add some hacks to copy TBB .dll's

This commit is contained in:
Eric Wasylishen 2022-01-29 15:57:00 -07:00
parent 686cdf4217
commit aa71025970
2 changed files with 9 additions and 0 deletions

View File

@ -5,4 +5,9 @@ set(BSPUTIL_SOURCES
add_executable(bsputil ${BSPUTIL_SOURCES})
target_link_libraries(bsputil common TBB::tbb fmt::fmt)
# HACK: copy .dll dependencies
add_custom_command(TARGET bsputil POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different "$<TARGET_FILE:TBB::tbb>" "$<TARGET_FILE_DIR:bsputil>")
install(TARGETS bsputil RUNTIME DESTINATION bin)

View File

@ -38,6 +38,10 @@ target_link_libraries(qbsp libqbsp)
install(TARGETS qbsp RUNTIME DESTINATION bin)
# HACK: copy .dll dependencies
add_custom_command(TARGET qbsp POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different "$<TARGET_FILE:TBB::tbb>" "$<TARGET_FILE_DIR:qbsp>")
# test (copied from light/CMakeLists.txt)
set(QBSP_TEST_SOURCE