Fixed package creation (package target), updated RTABMapConfig.cmake

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1051 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2013-12-13 00:51:48 +00:00
parent 1c3f78f2d6
commit 804c9162d0
6 changed files with 14 additions and 49 deletions

View File

@@ -2,15 +2,13 @@
# It defines the following variables
# RTABMap_INCLUDE_DIRS - include directories for RTABMap
# RTABMap_LIBRARIES - libraries to link against
# RTABMap_EXECUTABLE - the bar executable
# Compute paths
get_filename_component(RTABMap_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(RTABMap_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@")
# Our library dependencies (contains definitions for IMPORTED targets)
include("${RTABMap_CMAKE_DIR}/RTABMapTargets.cmake")
# These are IMPORTED targets created by RTABMapTargets.cmake
set(RTABMap_LIBRARIES rtabmap_core rtabmap_gui rtabmap_utilite)
set(RTABMap_EXECUTABLE rtabmap)
find_library(CORE_LIB NAMES rtabmap_core NO_DEFAULT_PATH HINTS "@CONF_LIB_DIR@")
find_library(GUI_LIB NAMES rtabmap_gui NO_DEFAULT_PATH HINTS "@CONF_LIB_DIR@")
find_library(UTILITE_LIB NAMES rtabmap_utilite NO_DEFAULT_PATH HINTS "@CONF_LIB_DIR@")
set(RTABMap_LIBRARIES ${CORE_LIB} ${GUI_LIB} ${UTILITE_LIB})