mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-08 02:37:45 +08:00
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:
@@ -0,0 +1,30 @@
|
||||
cmake_minimum_required(VERSION 2.4.6)
|
||||
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
|
||||
|
||||
# Set the build type. Options are:
|
||||
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
|
||||
# Debug : w/ debug symbols, w/o optimization
|
||||
# Release : w/o debug symbols, w/ optimization
|
||||
# RelWithDebInfo : w/ debug symbols, w/ optimization
|
||||
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
|
||||
#set(ROS_BUILD_TYPE RelWithDebInfo)
|
||||
|
||||
rosbuild_init()
|
||||
|
||||
#set the default path for built executables to the "bin" directory
|
||||
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
|
||||
#set the default path for built libraries to the "lib" directory
|
||||
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
|
||||
|
||||
#uncomment if you have defined messages
|
||||
#rosbuild_genmsg()
|
||||
#uncomment if you have defined services
|
||||
#rosbuild_gensrv()
|
||||
|
||||
#common commands for building c++ executables and libraries
|
||||
#rosbuild_add_library(${PROJECT_NAME} src/example.cpp)
|
||||
#target_link_libraries(${PROJECT_NAME} another_library)
|
||||
#rosbuild_add_boost_directories()
|
||||
#rosbuild_link_boost(${PROJECT_NAME} thread)
|
||||
#rosbuild_add_executable(example examples/example.cpp)
|
||||
#target_link_libraries(example ${PROJECT_NAME})
|
||||
@@ -0,0 +1,53 @@
|
||||
# - Find Fmodex
|
||||
# This module finds an installed Fmod package.
|
||||
#
|
||||
# It sets the following variables:
|
||||
# Fmodex_FOUND - Set to false, or undefined, if Fmod isn't found.
|
||||
# Fmodex_INCLUDE_DIRS - The Fmod include directory.
|
||||
# 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 PATHS ${Fmodex_ROOT}/include)
|
||||
|
||||
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
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)
|
||||
ENDIF (Fmodex_INCLUDE_DIRS AND Fmodex_LIBRARIES)
|
||||
|
||||
IF (Fmodex_FOUND)
|
||||
# show which Fmod was found only if not quiet
|
||||
IF (NOT Fmodex_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found Fmod: ${Fmodex_LIBRARIES}")
|
||||
ENDIF (NOT Fmodex_FIND_QUIETLY)
|
||||
ELSE (Fmodex_FOUND)
|
||||
# fatal error if Fmod is required but not found
|
||||
IF (Fmodex_FIND_REQUIRED)
|
||||
MESSAGE(FATAL_ERROR "Could not find Fmodex... (aka libfmodex)")
|
||||
ENDIF (Fmodex_FIND_REQUIRED)
|
||||
ENDIF (Fmodex_FOUND)
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
all: installed
|
||||
|
||||
TARBALL = build/fmodex44008.tar.gz
|
||||
TARBALL_URL = http://rtabmap.googlecode.com/files/fmodex44008.tar.gz
|
||||
SOURCE_DIR = build/fmodex44008
|
||||
UNPACK_CMD = tar xzf
|
||||
include $(shell rospack find mk)/download_unpack_build.mk
|
||||
|
||||
installed: $(SOURCE_DIR)/unpacked
|
||||
mkdir -p fmodex
|
||||
cp -r $(SOURCE_DIR)/include fmodex/.
|
||||
cp -r $(SOURCE_DIR)/lib fmodex/.
|
||||
touch installed
|
||||
|
||||
clean:
|
||||
-rm -rf src $(SOURCE_DIR) installed
|
||||
|
||||
wipe: clean
|
||||
-rm -rf build
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
\mainpage
|
||||
\htmlinclude manifest.html
|
||||
|
||||
\b fmodex
|
||||
|
||||
<!--
|
||||
Provide an overview of your package.
|
||||
-->
|
||||
|
||||
-->
|
||||
|
||||
|
||||
*/
|
||||
@@ -0,0 +1,14 @@
|
||||
<package>
|
||||
<description brief="fmodex">
|
||||
|
||||
fmodex
|
||||
|
||||
</description>
|
||||
<author>Mathieu Labbé</author>
|
||||
<license>BSD</license>
|
||||
<review status="unreviewed" notes=""/>
|
||||
<url>http://ros.org/wiki/fmodex</url>
|
||||
|
||||
</package>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user