MYNT-EYE-S-SDK/cmake/templates/pkginfo.sh.in
2018-11-01 23:34:52 +08:00

17 lines
405 B
Bash

#!/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