mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Added CMakeLists.txt for the c++ usage example tutorial
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@702 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
24
doc/Tutorials/CplusplusExample/CMakeLists.txt
Normal file
24
doc/Tutorials/CplusplusExample/CMakeLists.txt
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
PROJECT( MyProject )
|
||||||
|
|
||||||
|
SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}")
|
||||||
|
FIND_PACKAGE(RTABMap REQUIRED)
|
||||||
|
FIND_PACKAGE(UtiLite REQUIRED)
|
||||||
|
FIND_PACKAGE(OpenCV REQUIRED)
|
||||||
|
|
||||||
|
SET(INCLUDE_DIRS
|
||||||
|
${RTABMap_INCLUDE_DIRS}
|
||||||
|
${UtiLite_INCLUDE_DIRS}
|
||||||
|
${OpenCV_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
SET(LIBRARIES
|
||||||
|
${RTABMap_LIBRARIES}
|
||||||
|
${UtiLite_LIBRARIES}
|
||||||
|
${OpenCV_LIBRARIES}
|
||||||
|
)
|
||||||
|
|
||||||
|
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
||||||
|
|
||||||
|
ADD_EXECUTABLE(example main.cpp)
|
||||||
|
TARGET_LINK_LIBRARIES(example ${LIBRARIES})
|
||||||
Reference in New Issue
Block a user