Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion cpp/orbbec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,13 @@ if(MSVC)
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:sai-record-orbbec> $<TARGET_FILE_DIR:sai-record-orbbec>
COMMAND_EXPAND_LISTS
)
endif()

# Explicitly copy live555.dll & ob_usb.dll (not included in TARGET_RUNTIME_DLLS:sai-record-orbbec)
# NOTE: remove these lines if using older OrbbecSDK without live555.dll and ob_usb.dll
set(LIVE555_DLL_PATH "${OrbbecSDK_LIBS_DIR}/live555.dll")
set(OB_USB_DLL_PATH "${OrbbecSDK_LIBS_DIR}/ob_usb.dll")
add_custom_command(TARGET sai-record-orbbec POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${LIVE555_DLL_PATH} $<TARGET_FILE_DIR:sai-record-orbbec>
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${OB_USB_DLL_PATH} $<TARGET_FILE_DIR:sai-record-orbbec>
)
endif()