MYNT-EYE-S-SDK/cmake/templates/pkginfo.sh.in

17 lines
405 B
Bash
Raw Normal View History

2018-11-01 17:34:52 +02:00
#!/usr/bin/env bash
OpenCV_VERSION=@OpenCV_VERSION@
OpenCV_VERSION_MAJOR=@OpenCV_VERSION_MAJOR@
OpenCV_VERSION_MINOR=@OpenCV_VERSION_MINOR@
OpenCV_VERSION_PATCH=@OpenCV_VERSION_PATCH@
OpenCV_VERSION_STATUS=@OpenCV_VERSION_STATUS@
_contains() {
[ `echo $1 | grep -c "$2"` -gt 0 ]
}
if _contains "@OpenCV_INCLUDE_DIRS@" "/ros/"; then
ROS_VERSION=$(rosversion -d)
OpenCV_VERSION=ros-$ROS_VERSION
fi