mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27: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:
+1
-1
@@ -16,7 +16,7 @@ SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake_modules")
|
||||
#######################
|
||||
SET(RTABMAP_MAJOR_VERSION 0)
|
||||
SET(RTABMAP_MINOR_VERSION 6)
|
||||
SET(RTABMAP_PATCH_VERSION 3)
|
||||
SET(RTABMAP_PATCH_VERSION 4)
|
||||
SET(RTABMAP_VERSION
|
||||
${RTABMAP_MAJOR_VERSION}.${RTABMAP_MINOR_VERSION}.${RTABMAP_PATCH_VERSION})
|
||||
|
||||
|
||||
@@ -100,6 +100,7 @@ IF((APPLE AND BUILD_AS_BUNDLE) OR WIN32)
|
||||
IF(APPLE)
|
||||
SET(plugin_dest_dir MacOS)
|
||||
SET(qtconf_dest_dir Resources)
|
||||
SET(openni2_dest_dir MacOS)
|
||||
SET(APPS "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/MacOS/${CMAKE_BUNDLE_NAME}")
|
||||
ENDIF(APPLE)
|
||||
|
||||
@@ -110,11 +111,18 @@ IF((APPLE AND BUILD_AS_BUNDLE) OR WIN32)
|
||||
IF(NOT OpenNI2_BIN_DIR)
|
||||
MESSAGE(FATAL_ERROR "OpenNI2.dll not found! Verify your PATH.")
|
||||
ENDIF(NOT OpenNI2_BIN_DIR)
|
||||
ENDIF(WIN32)
|
||||
ELSE()
|
||||
# Mac OS X
|
||||
get_filename_component(OpenNI2_BIN_DIR "${OpenNI2_LIBRARY}" PATH)
|
||||
ENDIF()
|
||||
|
||||
INSTALL(DIRECTORY "${OpenNI2_BIN_DIR}/OpenNI2"
|
||||
DESTINATION ${openni2_dest_dir}
|
||||
COMPONENT runtime
|
||||
REGEX ".*pdb" EXCLUDE)
|
||||
INSTALL(FILES "${OpenNI2_BIN_DIR}/OpenNI.ini"
|
||||
DESTINATION ${openni2_dest_dir}
|
||||
COMPONENT runtime)
|
||||
ENDIF(OpenNI2_FOUND)
|
||||
|
||||
# Install needed Qt plugins by copying directories from the qt installation
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -4,11 +4,12 @@
|
||||
# It sets the following variables:
|
||||
# OpenNI2_FOUND - Set to false, or undefined, if OpenNI2 isn't found.
|
||||
# OpenNI2_INCLUDE_DIRS - The OpenNI2 include directory.
|
||||
# OpenNI2_LIBRARIES - The OpenNI2 library to link against.
|
||||
# OpenNI2_LIBRARIES - The OpenNI2 libraries to link against.
|
||||
# OpenNI2_LIBRARY - The OpenNI2 library alone.
|
||||
|
||||
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})
|
||||
FIND_LIBRARY(OpenNI2_LIBRARY NAMES OpenNI2 HINTS $ENV{OPENNI2_LIB64} $ENV{OPENNI2_LIB} $ENV{OPENNI2_REDIST})
|
||||
|
||||
IF (OpenNI2_INCLUDE_DIRS AND OpenNI2_LIBRARY)
|
||||
SET(OpenNI2_FOUND TRUE)
|
||||
@@ -18,7 +19,7 @@ IF (OpenNI2_FOUND)
|
||||
# show which OpenNI2 was found only if not quiet
|
||||
SET(OpenNI2_LIBRARIES ${OpenNI2_LIBRARY})
|
||||
IF (NOT OpenNI2_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found OpenNI2")
|
||||
MESSAGE(STATUS "Found OpenNI2: ${OpenNI2_LIBRARIES}")
|
||||
ENDIF (NOT OpenNI2_FIND_QUIETLY)
|
||||
ELSE (OpenNI2_FOUND)
|
||||
# fatal error if OpenNI2 is required but not found
|
||||
|
||||
@@ -53,6 +53,9 @@ SET(LIBRARIES
|
||||
|
||||
IF(Freenect_FOUND)
|
||||
ADD_DEFINITIONS("-DWITH_FREENECT")
|
||||
IF(Freenect_DASH_INCLUDES)
|
||||
ADD_DEFINITIONS("-DFREENECT_DASH_INCLUDES")
|
||||
ENDIF(Freenect_DASH_INCLUDES)
|
||||
SET(INCLUDE_DIRS
|
||||
${INCLUDE_DIRS}
|
||||
${Freenect_INCLUDE_DIRS}
|
||||
|
||||
@@ -36,7 +36,11 @@
|
||||
|
||||
#ifdef WITH_FREENECT
|
||||
#include <libfreenect.h>
|
||||
#ifdef FREENECT_DASH_INCLUDES
|
||||
#include <libfreenect-registration.h>
|
||||
#else
|
||||
#include <libfreenect_registration.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef WITH_OPENNI2
|
||||
|
||||
@@ -18,7 +18,6 @@ SET(headers_ui
|
||||
../include/${PROJECT_PREFIX}/gui/DataRecorder.h
|
||||
./ExportDialog.h
|
||||
./MapVisibilityWidget.h
|
||||
./GraphViewer.h
|
||||
)
|
||||
|
||||
SET(uis
|
||||
|
||||
Reference in New Issue
Block a user