mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
MAC OS X binaries fixed bundle. Freenect underscore vs dashed includes
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1394 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -5,12 +5,19 @@
|
||||
# Freenect_FOUND - Set to false, or undefined, if Freenect isn't found.
|
||||
# Freenect_INCLUDE_DIRS - The Freenect include directory.
|
||||
# Freenect_LIBRARIES - The Freenect library to link against.
|
||||
# Freenect_DASH_INCLUDES - If includes have "-" instead of "_" in their names. New libfreenect has "_".
|
||||
|
||||
FIND_PATH(Freenect_INCLUDE_DIRS libfreenect-registration.h PATH_SUFFIXES libfreenect)
|
||||
FIND_PATH(Freenect_INCLUDE_DIRS libfreenect-registration.h libfreenect_registration.h PATH_SUFFIXES libfreenect)
|
||||
|
||||
FIND_LIBRARY(Freenect_LIBRARY NAMES freenect)
|
||||
FIND_LIBRARY(Freenect_sync_LIBRARY NAMES freenect_sync)
|
||||
|
||||
FIND_FILE(tmp libfreenect-registration.h PATH_SUFFIXES libfreenect)
|
||||
SET(Freenect_DASH_INCLUDES 0)
|
||||
IF(tmp)
|
||||
SET(Freenect_DASH_INCLUDES 1)
|
||||
ENDIF(tmp)
|
||||
|
||||
IF (Freenect_INCLUDE_DIRS AND Freenect_LIBRARY AND Freenect_sync_LIBRARY)
|
||||
SET(Freenect_FOUND TRUE)
|
||||
ENDIF (Freenect_INCLUDE_DIRS AND Freenect_LIBRARY AND Freenect_sync_LIBRARY)
|
||||
@@ -19,7 +26,7 @@ IF (Freenect_FOUND)
|
||||
# show which Freenect was found only if not quiet
|
||||
SET(Freenect_LIBRARIES ${Freenect_LIBRARY} ${Freenect_sync_LIBRARY})
|
||||
IF (NOT Freenect_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found Freenect")
|
||||
MESSAGE(STATUS "Found Freenect: ${Freenect_LIBRARIES}")
|
||||
ENDIF (NOT Freenect_FIND_QUIETLY)
|
||||
ELSE (Freenect_FOUND)
|
||||
# fatal error if Freenect is required but not found
|
||||
|
||||
Reference in New Issue
Block a user