Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLSL Processing Blocks #3654

Merged
merged 175 commits into from
May 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
53a3b20
Fixed rs-convert crash
Mar 22, 2019
6677961
Implements retrieving camera intrinsic parameters from T265
Mar 22, 2019
7241508
check-in sample
schmidtp1 Mar 22, 2019
9bc8f63
refactored tm2 from viewer_model to subdevice_model
AnnaRomanov Mar 25, 2019
0fb2ac2
Implements API for profile extrinsic parameters on T265
Mar 21, 2019
0ee52ff
Added multicam support for tm2 in viewer
AnnaRomanov Mar 26, 2019
b542593
Examples: window can be closed
dorian3d Mar 26, 2019
8cde9b8
Examples: class to listen to key pressed
dorian3d Mar 26, 2019
2b76bb4
AR-basic example: shows a virtual image on T265 fisheye images
dorian3d Mar 19, 2019
bf2e3b4
AR-basic example: readme
dorian3d Mar 22, 2019
16c28c1
Examples readme: AR-Basic example added
dorian3d Mar 26, 2019
1148c9b
Merge pull request #3609 from IntelRealSense/development
dorodnic Mar 28, 2019
2e39558
[python] Pipeline callbacks
Mar 31, 2019
735e1ee
Exit function after CUDA conversion
dorodnic Apr 1, 2019
4a8ec16
Simplify udev-rules application
yaman23 Apr 1, 2019
5e49019
Release GIL in pipeline::wait_for_frames()
landersson Apr 2, 2019
90011e4
Update installation_osx.md
matkatz Apr 2, 2019
058a172
Adding RealSense-GL extension library with GLSL implementations of al…
dorodnic Apr 2, 2019
8888033
Updates to the Viewer / DQT to take advantage of GL processing & rend…
dorodnic Apr 2, 2019
1948750
Minor examples fixes
dorodnic Apr 2, 2019
ce96c88
Adding GL example
dorodnic Apr 2, 2019
06b24cb
Adding benchmarking tool
dorodnic Apr 2, 2019
321c949
Update t265.md
schmidtp1 Apr 2, 2019
e302aed
Addressing pr_check.sh errors
dorodnic Apr 3, 2019
8859cc5
Update api_check.sh
dorodnic Apr 2, 2019
0a74d4b
Merge pull request #3571 from schmidtp1/t265-rpy-python-example
dorodnic Apr 3, 2019
accc3e3
Merge pull request #3591 from AnnaRomanov/viewer_multicamera_tm2
dorodnic Apr 3, 2019
e683f02
Merge pull request #3564 from YangJiao1996/master
dorodnic Apr 3, 2019
ea0879f
Merge pull request #3541 from dmirota/t265_camera_intrinsics
dorodnic Apr 3, 2019
67618f5
Merge pull request #3563 from dmirota/t265_profile_extrinsics
dorodnic Apr 3, 2019
6f52aac
Merge branch 'development' into ar-sample
dorodnic Apr 3, 2019
ebe7676
Merge pull request #3593 from dorian3d/ar-sample
dorodnic Apr 3, 2019
88600ab
When building as static lib with easylogging, only initialize it once
dorodnic Apr 3, 2019
74b317a
Update readme.md
dorodnic Apr 3, 2019
edfb6c8
Update tracking.md
dorodnic Apr 3, 2019
e053cc6
Merge pull request #3643 from dorodnic/simple-udev
ev-mp Apr 3, 2019
dc980e3
Merge pull request #3641 from IntelRealSense/cuda-fix
dorodnic Apr 3, 2019
a3f07dc
Documentation update: elaborate on Debian packages update routine
ev-mp Apr 4, 2019
5befc8a
Promote TM2 version selection to 0.0.18.5448
ev-mp Apr 3, 2019
1625cdf
Fix Librelasense cmake private files list- remove duplicate, add miss…
ev-mp Apr 3, 2019
a052923
Merge pull request #3673 from ev-mp/current
ev-mp Apr 4, 2019
8791358
Merge pull request #3669 from ev-mp/tm2_5441
ev-mp Apr 4, 2019
756fa7b
Merge pull request #3634 from lramati/pypipe
ev-mp Apr 4, 2019
a94d966
Merge pull request #3666 from landersson/master
ev-mp Apr 4, 2019
aec524a
Bump version to 2.20.0.
ev-mp Apr 4, 2019
4ffb204
Merge pull request #3677 from ev-mp/current
ev-mp Apr 4, 2019
fe8ca57
Update example.hpp
ev-mp Apr 4, 2019
7f2ba0d
Merge pull request #3683 from IntelRealSense/development
dorodnic Apr 4, 2019
c12437b
support linear color space
tarukosu Apr 5, 2019
84f0f8d
tm2: put operator<< in perc:: or clang can't find it
radfordi Mar 5, 2019
babf076
Use override consistently
radfordi Mar 6, 2019
f730c43
Use extra parens for assignments within if's to avoid warning
radfordi Mar 6, 2019
a87d4bb
using libuvc is not a warning, but a status
radfordi Mar 16, 2019
4e212a7
Remove the need for USE_SYSTEM_LIBUSB
radfordi Mar 16, 2019
6e0a0b0
Use installed glfw if available
radfordi Feb 20, 2019
0e1a354
Fix third-party/libusb build on a Mac
radfordi Mar 26, 2019
f5fa91e
Update libusb to fix get_device_list hang
radfordi Mar 26, 2019
a3cee5c
rs-pose is not graphical
radfordi Mar 26, 2019
6f61fd0
Use CMAKE_CXX_STANDARD instead of open coding it
radfordi Mar 27, 2019
787836b
Remove obsolete FindLibUSB.cmake and Findlibtm.cmake
radfordi Mar 27, 2019
1ac2cb8
Create a consistent usb target on every platform
radfordi Mar 16, 2019
ba320fb
Detect libusb generically for all platforms
radfordi Mar 26, 2019
5e09bec
Remove obsolete apple_config.cmake
radfordi Mar 28, 2019
895e734
Fix typo in central app version parsing
radfordi Apr 1, 2019
acf294f
Avoid creating version files in the source directory
radfordi Apr 2, 2019
9db097a
Match GCC diagnostic push with pop in libuvc
radfordi Apr 2, 2019
8053c1f
Add an install target of system libusb interface
radfordi Apr 2, 2019
78663df
Avoid trigging new builds of internal libusb
radfordi Apr 3, 2019
45b06bd
Remove pointless cmake messages from libtm
radfordi Apr 3, 2019
42cdafd
Avoid code page warnings for external project libusb
radfordi Apr 4, 2019
a57d214
Let libtm export its own include directory
radfordi Apr 5, 2019
2718030
Add parenthesis to macro arguments to avoid precedence issues
radfordi Apr 5, 2019
44a340e
libtm: interface updated to latest firmware
dorian3d Apr 6, 2019
ab141eb
Merge pull request #3690 from dorian3d/update_libtm
dorodnic Apr 7, 2019
1bc211c
Fixing #3681
dorodnic Apr 7, 2019
3aeda26
Update read_bag_example.py
dorodnic Apr 8, 2019
5711d2d
add support in W10 format for d4xx rolling-shutter cameras
matkatz Apr 9, 2019
fa4a641
Typo fix
smartel99 Apr 9, 2019
6b3c998
Merge pull request #3719 from smartel99/patch-1
dorodnic Apr 9, 2019
1bf40c8
android - enable l500
matkatz Apr 10, 2019
5453ea8
Update installation.md
Jul 4, 2018
71e6e50
Adjust Linux installation instructions
ev-mp Apr 10, 2019
50e1b30
Update Linux installation flow
ev-mp Apr 10, 2019
6f30b5f
Fix Markdown indentation
ev-mp Apr 10, 2019
4be1e75
sRGB sampling only for Stream.Color and Stream.Infrared
tarukosu Apr 11, 2019
2d4cddd
Fix D435i PID for headless+module; add PID for additional SKUs
ev-mp Apr 8, 2019
27a7282
Fix log message for missing/unregistered formats
ev-mp Apr 10, 2019
74814a2
Fix HID timestamp conversion:
ev-mp Apr 10, 2019
e796301
Merge pull request #3702 from ev-mp/candidate
ev-mp Apr 11, 2019
6857d7c
Merge pull request #3729 from ev-mp/linux_instructions
ev-mp Apr 11, 2019
672b33b
t265: Disable low power mode by default
bfulkers-i Apr 11, 2019
37cee2b
android - enable l500 - CR fix
matkatz Apr 11, 2019
9c750f4
Update readme.md
dorodnic Apr 11, 2019
4a8d45a
[python] add pipeline.start(cfg, cb), handle gil properly on all stop…
Apr 11, 2019
7a242e1
remove duplactions of fourcc_map
matkatz Apr 11, 2019
24ce2c4
Merge pull request #3726 from ev-mp/ts_wa_bug
ev-mp Apr 11, 2019
921576c
l500 - throw exception in case HWM_OVER_XU and no USB devices found
matkatz Apr 11, 2019
6e9ecc6
remove excption throw on l500 constructor
matkatz Apr 11, 2019
af8d4b2
l500 - allow empty usb device list
matkatz Apr 14, 2019
c0f6b64
raw10 - CR fix
matkatz Apr 14, 2019
0336287
Merge pull request #3727 from matkatz/android_enable_l500
matkatz Apr 14, 2019
e362539
Merge branch 'development' into raw10-support
matkatz Apr 14, 2019
e7c8e54
remove D416 from factory creation list
matkatz Apr 14, 2019
c2d22e9
corrected elseif syntax
dpiskas Apr 14, 2019
372b38a
corrected "elseif" syntax
dpiskas Apr 14, 2019
bacee5a
Fix Alignment processing block:
ev-mp Apr 15, 2019
42333ee
Add Align processing block verification unit-test.
ev-mp Apr 15, 2019
4c1efb8
Add description for Confidence stream type
ev-mp Apr 15, 2019
3e91600
Merge pull request #3715 from matkatz/raw10-support
ev-mp Apr 15, 2019
d8f62cd
Remove commented-out code
ev-mp Apr 15, 2019
7ec1b01
Use extra parens for assignments within if's to avoid warning
radfordi Apr 16, 2019
036b8f2
Avoid non-standard fourcc C syntax
radfordi Apr 16, 2019
418f5f1
Append CMake/ to the module path so we can include from any directory
radfordi Apr 16, 2019
d9b8097
Include libusb_config on demand instead of globally
radfordi Apr 16, 2019
cc00611
Include android_config in preference to windows_config or unix_config
radfordi Apr 16, 2019
b97f707
Include libtm firmware directly as binary
radfordi Apr 1, 2019
585b08b
Resources don't get picked up from static libraries with out an expli…
Apr 2, 2019
1cd948f
Remove old libtm firwmare header generation
radfordi Apr 1, 2019
513dd80
android - add presets support, enable camera stream configuration
matkatz Apr 16, 2019
7c4919d
Converting the timestamp units using floating point scale factor resu…
ev-mp Apr 16, 2019
fd5f6dc
android - add missing stream types
matkatz Apr 16, 2019
ca5ce87
Merge pull request #3647 from radfordi/libtm-fw-incbin
ev-mp Apr 16, 2019
b1dceaf
Merge pull request #3773 from ev-mp/current
ev-mp Apr 16, 2019
24d6ae2
Added support on IMU in l500
aangerma Apr 14, 2019
5fcf07c
Merge with public/development
aangerma Apr 15, 2019
cfcd6df
force HID devices only on windows and linux
aangerma Apr 15, 2019
b5d2767
android - add presets json files
matkatz Apr 16, 2019
14bf267
Merge pull request #3736 from bfulkers-i/low-power-disable
ev-mp Apr 17, 2019
35013e3
Matlab update after libtm restructure - adding fw.lib dependency
ev-mp Apr 17, 2019
de52af4
Merge pull request #3760 from ev-mp/align
ev-mp Apr 17, 2019
11db293
Merge pull request #3777 from ev-mp/current
ev-mp Apr 17, 2019
035a6a4
Promote T265 FW version selector to 5502
ev-mp Apr 17, 2019
0ef5f35
Merge pull request #3778 from ev-mp/current
ev-mp Apr 17, 2019
525449e
Fixes following code review
aangerma Apr 15, 2019
cb27100
T265 Documentation - wheel odometer calibration info
ev-mp Apr 17, 2019
f24981a
android presets - cr fix
matkatz Apr 17, 2019
f742ecc
Update usb_pipe.cpp
matkatz Apr 17, 2019
743fd18
libuvc: fix undefined behavior caused by capture-by-reference of loca…
WasabiFan Apr 18, 2019
bd4ea5a
Merge pull request #3763 from aangerma/development
ev-mp Apr 18, 2019
d894c53
Merge pull request #3771 from matkatz/android-presets-support
ev-mp Apr 18, 2019
bec4d4a
Merge pull request #3755 from dpiskas/development
ev-mp Apr 18, 2019
124becd
change examples to support long first frame latency examples
matkatz Apr 18, 2019
7a63691
Add debug postfix for MSVC builds
claudiofantacci Mar 27, 2019
292fb8b
Add doc exclusions in gitignore
claudiofantacci Mar 28, 2019
8075623
Added support for l500 metadata
aangerma Apr 20, 2019
ecb7012
L500 patch - HID will mapped if available on startup.
ev-mp Apr 21, 2019
ef45dd6
default timeout - cr fix
matkatz Apr 21, 2019
5775cba
Merge pull request #3739 from lramati/pypipe
ev-mp Apr 21, 2019
f1676c6
L500 Patch - disable Zero-Order. Requires zo_point_x integration
ev-mp Apr 21, 2019
a31c049
Merge pull request #3791 from aangerma/development
ev-mp Apr 21, 2019
13b2678
measure example - fix streaming both for USB2 and SR300/L500
matkatz Apr 21, 2019
71441e8
Merge pull request #3807 from matkatz/measure_example_l500
ev-mp Apr 21, 2019
216b283
Merge pull request #3795 from matkatz/default_wff_timeout
ev-mp Apr 21, 2019
453e57f
small refactor to l500 classes and added color and depth intrinsics a…
aangerma Apr 16, 2019
e6a5c27
Find the correct intrinsics by profile resolution
aangerma Apr 18, 2019
21a329e
Fixes following code review
aangerma Apr 18, 2019
9fb22c7
L500 Amendments
ev-mp Apr 21, 2019
ec24a09
Fixed typo line 82 "cd protbuf"
jonherke Apr 21, 2019
1a210fd
Merge pull request #3808 from ev-mp/l500_intr_extr
ev-mp Apr 22, 2019
b99457e
Merge pull request #3810 from jonherke/patch-1
ev-mp Apr 22, 2019
2159af5
Merge pull request #3813 from ev-mp/master
ev-mp Apr 22, 2019
9bdbfd9
SDK Promote to v2.21.0
ev-mp Apr 22, 2019
5b616e6
Update README
juniorxsound Apr 22, 2019
d5ca975
Merge pull request #1 from juniorxsound/depth-viewer-community-example
juniorxsound Apr 22, 2019
f4d0205
Update README
juniorxsound Apr 22, 2019
84ac6b5
Merge pull request #3820 from juniorxsound/development
dorodnic Apr 28, 2019
d353193
Merge pull request #3783 from WasabiFan/fix-libuvc-local-variable-cap…
dorodnic Apr 28, 2019
8a151c3
Merge pull request #3687 from tarukosu/support-linear-color-space
dorodnic Apr 29, 2019
7fb89e9
Disabled check of HID for D435i/D430i for android & mac #3803
Apr 20, 2019
312a1e6
Merge pull request #3804 from state-of-the-art/patch-1
dorodnic Apr 29, 2019
d02697f
Merge pull request #3611 from claudiofantacci/fix/windowsbuild
dorodnic Apr 29, 2019
ce02002
android - add missing filters to Java API
matkatz Apr 29, 2019
2354cba
android - processing example app added
matkatz Apr 29, 2019
6648579
Merge pull request #3869 from matkatz/android-filter-option
dorodnic Apr 30, 2019
49e24c1
Merge branch 'glsl_extension' into development
dorodnic May 5, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ lib/
ubuntu-xenial/
ubuntu-xenial-hwe/

# Docs
doc/doxygen/html/
*.html.lnk

# CMake
build/
build*/
connectivity_check

# XCode
Expand Down Expand Up @@ -83,4 +87,3 @@ librealsense-log.txt
*.json
*.ini
*.cxx

106 changes: 0 additions & 106 deletions CMake/FindLibUSB.cmake

This file was deleted.

84 changes: 0 additions & 84 deletions CMake/Findlibtm.cmake

This file was deleted.

8 changes: 0 additions & 8 deletions CMake/android_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ macro(os_set_flags)
else()
set(FORCE_LIBUVC ON)
set(BACKEND RS2_USE_V4L2_BACKEND)
include(CMake/external_libusb.cmake)
set(LIBUSB1_LIBRARIES ${LIBUSB1_LIBRARIES} log)
endif()
endmacro()

Expand All @@ -33,10 +31,4 @@ macro(os_target_config)
find_library(log-lib log)
target_link_libraries(${LRS_TARGET} PRIVATE log)
endif()

if(NOT ANDROID_USB_HOST_UVC)
add_dependencies(${LRS_TARGET} libusb)
endif()

target_link_libraries(${LRS_TARGET} PRIVATE ${LIBUSB1_LIBRARIES})
endmacro()
22 changes: 0 additions & 22 deletions CMake/apple_config.cmake

This file was deleted.

22 changes: 12 additions & 10 deletions CMake/external_libusb.cmake
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
message(STATUS "Use external libusb")
include(ExternalProject)

ExternalProject_Add(
libusb

GIT_REPOSITORY "https://github.com/libusb/libusb.git"
GIT_TAG "v1.0.22"
GIT_TAG "2a7372db54094a406a755f0b8548b614ba8c78ec" # "v1.0.22" + Mac get_device_list hang fix

UPDATE_COMMAND ${CMAKE_COMMAND} -E copy
UPDATE_COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_SOURCE_DIR}/third-party/libusb/CMakeLists.txt
${CMAKE_CURRENT_BINARY_DIR}/third-party/libusb/CMakeLists.txt
PATCH_COMMAND ""
Expand All @@ -20,13 +19,16 @@ ExternalProject_Add(
-DANDROID_STL=${ANDROID_STL}
-DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/libusb_install
TEST_COMMAND ""
BUILD_BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/libusb_install/lib/${CMAKE_STATIC_LIBRARY_PREFIX}usb${CMAKE_STATIC_LIBRARY_SUFFIX}
)

set(LIBUSB1_LIBRARY_DIRS ${CMAKE_CURRENT_BINARY_DIR}/libusb_install/lib)
link_directories(${LIBUSB1_LIBRARY_DIRS})
add_library(usb INTERFACE)
target_include_directories(usb INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/third-party/libusb/libusb>)
target_link_libraries(usb INTERFACE ${CMAKE_CURRENT_BINARY_DIR}/libusb_install/lib/${CMAKE_STATIC_LIBRARY_PREFIX}usb${CMAKE_STATIC_LIBRARY_SUFFIX})
set(USE_EXTERNAL_USB ON) # INTERFACE libraries can't have real deps, so targets that link with usb need to also depend on libusb

set(LIBUSB1_LIBRARIES usb)
#set(LIBUSB_LOCAL_INCLUDE_PATH third-party/libusb)

set(USE_EXTERNAL_USB ON)
set(LIBUSB_LOCAL_INCLUDE_PATH ${CMAKE_CURRENT_BINARY_DIR}/third-party/libusb)
if (APPLE)
find_library(corefoundation_lib CoreFoundation)
find_library(iokit_lib IOKit)
target_link_libraries(usb INTERFACE objc ${corefoundation_lib} ${iokit_lib})
endif()
9 changes: 5 additions & 4 deletions CMake/global_config.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Save the command line compile commands in the build output
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
set(CMAKE_CXX_STANDARD 11)
# View the makefile commands during build
#set(CMAKE_VERBOSE_MAKEFILE on)

Expand Down Expand Up @@ -50,7 +51,7 @@ macro(global_set_flags)

if(FORCE_LIBUVC)
set(BACKEND RS2_USE_LIBUVC_BACKEND)
message( WARNING "Using libuvc!" )
message(STATUS "Using libuvc (by force)")
endif()

if (BUILD_WITH_CUDA)
Expand All @@ -61,7 +62,7 @@ macro(global_set_flags)
endmacro()

macro(global_target_config)
target_link_libraries(${LRS_TARGET} PRIVATE realsense-file ${CMAKE_THREAD_LIBS_INIT} ${TRACKING_DEVICE_LIBS})
target_link_libraries(${LRS_TARGET} PRIVATE realsense-file ${CMAKE_THREAD_LIBS_INIT})

include_directories(${LRS_TARGET} src)

Expand All @@ -83,10 +84,10 @@ endmacro()
macro(add_tm2)
message(STATUS "Building with TM2")
add_subdirectory(third-party/libtm)
include(libusb_config)
if(USE_EXTERNAL_USB)
add_dependencies(tm libusb)
endif()
target_compile_definitions(${LRS_TARGET} PRIVATE WITH_TRACKING=1 BUILD_STATIC=1)
target_link_libraries(${LRS_TARGET} PRIVATE tm ${CMAKE_THREAD_LIBS_INIT} ${TRACKING_DEVICE_LIBS})
target_include_directories(${LRS_TARGET} PRIVATE third-party/libtm/libtm/include)
target_link_libraries(${LRS_TARGET} PRIVATE tm ${CMAKE_THREAD_LIBS_INIT})
endmacro()
18 changes: 7 additions & 11 deletions CMake/include_os.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
if (WIN32)
include(CMake/windows_config.cmake)
endif()

if(UNIX)
include(CMake/unix_config.cmake)
endif()

if(ANDROID_NDK_TOOLCHAIN_INCLUDED)
include(CMake/android_config.cmake)
endif()
if(ANDROID_NDK_TOOLCHAIN_INCLUDED)
include(CMake/android_config.cmake)
elseif (WIN32)
include(CMake/windows_config.cmake)
else()
include(CMake/unix_config.cmake)
endif()
14 changes: 14 additions & 0 deletions CMake/libusb_config.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
if (NOT TARGET usb)
find_library(LIBUSB_LIB usb-1.0)
find_path(LIBUSB_INC libusb.h HINTS PATH_SUFFIXES libusb-1.0)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(usb "libusb not found; using internal version" LIBUSB_LIB LIBUSB_INC)
if (USB_FOUND)
add_library(usb INTERFACE)
target_include_directories(usb INTERFACE ${LIBUSB_INC})
target_link_libraries(usb INTERFACE ${LIBUSB_LIB})
else()
include(CMake/external_libusb.cmake)
endif()
install(TARGETS usb EXPORT realsense2Targets)
endif()
18 changes: 0 additions & 18 deletions CMake/unix_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ macro(os_set_flags)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -pedantic -g -Wno-missing-field-initializers")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-switch -Wno-multichar -Wsequence-point -Wformat-security")

add_definitions(-DUSE_SYSTEM_LIBUSB)

execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpmachine OUTPUT_VARIABLE MACHINE)
if(${MACHINE} MATCHES "arm-linux-gnueabihf")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=neon -mfloat-abi=hard -ftree-vectorize")
Expand All @@ -33,20 +31,4 @@ macro(os_set_flags)
endmacro()

macro(os_target_config)
find_package(PkgConfig)
if(NOT PKG_CONFIG_FOUND)
message(FATAL_ERROR "\n\n PkgConfig package is missing!\n\n")
endif()

pkg_search_module(LIBUSB1 REQUIRED libusb-1.0)
if(LIBUSB1_FOUND)
include_directories(SYSTEM ${LIBUSB1_INCLUDE_DIRS})
link_directories(${LIBUSB1_LIBRARY_DIRS})
list(APPEND librealsense_PKG_DEPS "libusb-1.0")
else()
message( FATAL_ERROR "Failed to find libusb-1.0" )
endif(LIBUSB1_FOUND)

target_include_directories(${LRS_TARGET} PRIVATE ${LIBUSB1_INCLUDE_DIRS})
target_link_libraries(${LRS_TARGET} PRIVATE ${LIBUSB1_LIBRARIES})
endmacro()
Loading