File: FindRSSDK2.cmake

package info (click to toggle)
pcl 1.13.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 143,524 kB
  • sloc: cpp: 518,578; xml: 28,792; ansic: 13,676; python: 334; lisp: 93; sh: 49; makefile: 30
file content (22 lines) | stat: -rw-r--r-- 790 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
###############################################################################
# Find Intel RealSense SDK 2.0 (librealsense)
#
#     find_package(RSSDK2)
#
# Variables defined by this module:
#
#  RSSDK2_FOUND                 True if RealSense SDK 2.0 was found
#  RSSDK2_INCLUDE_DIRS          The location(s) of RealSense SDK 2.0 headers
#  RSSDK2_LIBRARIES             Libraries needed to use RealSense SDK 2.0

find_package(realsense2 QUIET)

set(RSSDK2_FOUND ${realsense2_FOUND})
set(RSSDK2_INCLUDE_DIRS ${realsense2_INCLUDE_DIR})
set(RSSDK2_LIBRARIES ${realsense2_LIBRARY})

if(RSSDK2_FOUND)
  message(STATUS "RealSense SDK 2 found (include: ${RSSDK2_INCLUDE_DIRS}, lib: ${RSSDK2_LIBRARIES}, version: ${realsense2_VERSION})")
else ()
  message(STATUS "Could NOT find RSSDK2")
endif()