Skip to content

Commit

Permalink
fixed sample can not run in macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jian-dong committed Jan 16, 2024
1 parent d9fdc7c commit b2941e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ endif()

add_subdirectory(c)
add_subdirectory(cpp)

install(DIRECTORY
${OrbbecSDK_LIBS_DIR}/ DESTINATION
bin
FILES_MATCHING PATTERN "*.dll" PATTERN "*.so" PATTERN "*.dylib"
)
6 changes: 4 additions & 2 deletions examples/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ if(${OpenCV_FOUND})
add_subdirectory(Sample-MultiDeviceSync)
add_subdirectory(Sample-NetDevice)
add_subdirectory(Sample-SaveToDisk)
add_subdirectory(Sample-Recorder)
add_subdirectory(Sample-Playback)
add_subdirectory(Sample-DepthPrecisionViewer)
add_subdirectory(Sample-CommonUsages)
add_subdirectory(Sample-DoubleInfraredViewer)
if(NOT APPLE)
add_subdirectory(Sample-Recorder)
add_subdirectory(Sample-Playback)
endif()
endif()

0 comments on commit b2941e7

Please sign in to comment.