cmake: add some hacks to copy TBB .dll's
This commit is contained in:
parent
686cdf4217
commit
aa71025970
|
|
@ -5,4 +5,9 @@ set(BSPUTIL_SOURCES
|
||||||
|
|
||||||
add_executable(bsputil ${BSPUTIL_SOURCES})
|
add_executable(bsputil ${BSPUTIL_SOURCES})
|
||||||
target_link_libraries(bsputil common TBB::tbb fmt::fmt)
|
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)
|
install(TARGETS bsputil RUNTIME DESTINATION bin)
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,10 @@ target_link_libraries(qbsp libqbsp)
|
||||||
|
|
||||||
install(TARGETS qbsp RUNTIME DESTINATION bin)
|
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)
|
# test (copied from light/CMakeLists.txt)
|
||||||
|
|
||||||
set(QBSP_TEST_SOURCE
|
set(QBSP_TEST_SOURCE
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue