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:
matlabbe
2014-06-17 01:45:52 +00:00
parent 863caab3cd
commit 586f4e3d86
7 changed files with 30 additions and 8 deletions

View File

@@ -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