17 lines
405 B
Bash
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
|