added fmodex ros package for convenience (download and install fmodex)

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/ros-pkg@563 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2012-06-24 19:49:44 +00:00
parent ffcfa9236c
commit 262a80c33c
11 changed files with 163 additions and 9 deletions
+25 -5
View File
@@ -7,14 +7,34 @@
# Fmodex_LIBRARIES - The Fmod library to link against.
#
#
SET(Fmodex_ROOT)
# Add ROS Fmodex directory if ROS is installed
FIND_PROGRAM(ROSPACK_EXEC NAME rospack PATHS)
IF(ROSPACK_EXEC)
EXECUTE_PROCESS(COMMAND ${ROSPACK_EXEC} find fmodex
OUTPUT_VARIABLE Fmodex_ROS_PATH
OUTPUT_STRIP_TRAILING_WHITESPACE
WORKING_DIRECTORY "./"
)
IF(Fmodex_ROS_PATH)
MESSAGE(STATUS "Found Fmodex ROS pkg : ${Fmodex_ROS_PATH}")
SET(Fmodex_ROOT
${Fmodex_ROS_PATH}/fmodex
${Fmodex_ROOT}
)
ENDIF(Fmodex_ROS_PATH)
ENDIF(ROSPACK_EXEC)
FIND_PATH(Fmodex_INCLUDE_DIRS fmod.h)
FIND_PATH(Fmodex_INCLUDE_DIRS fmod.h PATHS ${Fmodex_ROOT}/include)
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
FIND_LIBRARY(Fmodex_LIBRARIES NAMES fmodex64)
ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8)
FIND_LIBRARY(Fmodex_LIBRARIES NAMES fmodex)
FIND_LIBRARY(Fmodex_LIBRARIES NAMES fmodex64 PATHS ${Fmodex_ROOT}/lib)
ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)
IF(NOT Fmodex_LIBRARIES)
FIND_LIBRARY(Fmodex_LIBRARIES NAMES fmodex PATHS ${Fmodex_ROOT}/lib)
ENDIF(NOT Fmodex_LIBRARIES)
IF (Fmodex_INCLUDE_DIRS AND Fmodex_LIBRARIES)
SET(Fmodex_FOUND TRUE)
@@ -28,6 +48,6 @@ IF (Fmodex_FOUND)
ELSE (Fmodex_FOUND)
# fatal error if Fmod is required but not found
IF (Fmodex_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find Fmod...")
MESSAGE(FATAL_ERROR "Could not find Fmodex... (aka libfmodex)")
ENDIF (Fmodex_FIND_REQUIRED)
ENDIF (Fmodex_FOUND)