File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -43,4 +43,13 @@ if(MSVC)
43
43
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:sai-record-orbbec> $<TARGET_FILE_DIR:sai-record-orbbec>
44
44
COMMAND_EXPAND_LISTS
45
45
)
46
- endif ()
46
+
47
+ # Explicitly copy live555.dll & ob_usb.dll (not included in TARGET_RUNTIME_DLLS:sai-record-orbbec)
48
+ # NOTE: remove these lines if using older OrbbecSDK without live555.dll and ob_usb.dll
49
+ set (LIVE555_DLL_PATH "${OrbbecSDK_LIBS_DIR} /live555.dll" )
50
+ set (OB_USB_DLL_PATH "${OrbbecSDK_LIBS_DIR} /ob_usb.dll" )
51
+ add_custom_command (TARGET sai-record-orbbec POST_BUILD
52
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different ${LIVE555_DLL_PATH} $<TARGET_FILE_DIR:sai-record-orbbec>
53
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different ${OB_USB_DLL_PATH} $<TARGET_FILE_DIR:sai-record-orbbec>
54
+ )
55
+ endif ()
You can’t perform that action at this time.
0 commit comments