mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Fixed focal computation when images are registered (freenect), Updated FindOpenNI2.cmake for unix
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1364 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -6,10 +6,12 @@
|
||||
# OpenNI2_INCLUDE_DIRS - The OpenNI2 include directory.
|
||||
# OpenNI2_LIBRARIES - The OpenNI2 library to link against.
|
||||
|
||||
FIND_PATH(OpenNI2_INCLUDE_DIRS OpenNI.h HINTS $ENV{OPENNI2_INCLUDE64} $ENV{OPENNI2_INCLUDE})
|
||||
FIND_PATH(OpenNI2_INCLUDE_DIRS OpenNI.h HINTS $ENV{OPENNI2_INCLUDE64} $ENV{OPENNI2_INCLUDE} PATH_SUFFIXES openni2)
|
||||
|
||||
FIND_LIBRARY(OpenNI2_LIBRARY NAMES OpenNI2 HINTS $ENV{OPENNI2_LIB64} $ENV{OPENNI2_LIB})
|
||||
|
||||
MESSAGE(STATUS "OpenNI2_INCLUDE_DIRS=${OpenNI2_INCLUDE_DIRS} OpenNI2_LIBRARY=${OpenNI2_LIBRARY}")
|
||||
|
||||
IF (OpenNI2_INCLUDE_DIRS AND OpenNI2_LIBRARY)
|
||||
SET(OpenNI2_FOUND TRUE)
|
||||
ENDIF (OpenNI2_INCLUDE_DIRS AND OpenNI2_LIBRARY)
|
||||
@@ -23,7 +25,7 @@ IF (OpenNI2_FOUND)
|
||||
ELSE (OpenNI2_FOUND)
|
||||
# fatal error if OpenNI2 is required but not found
|
||||
IF (OpenNI2_FIND_REQUIRED)
|
||||
MESSAGE(FATAL_ERROR "Could not find OpenNI2")
|
||||
MESSAGE(FATAL_ERROR "Could not find OpenNI2. Environment variables OPENNI2_INCLUDE (directory containing OpenNI.h) and OPENNI2_LIB (directory containing OpenNI2 library) could bet set.")
|
||||
ENDIF (OpenNI2_FIND_REQUIRED)
|
||||
ENDIF (OpenNI2_FOUND)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user