2011-06-20 16:49:22 +00:00
|
|
|
# avpd rev. HEAD
|
|
|
|
|
INSTALL_DIR = rtabmap
|
|
|
|
|
|
|
|
|
|
all: installed
|
|
|
|
|
|
|
|
|
|
SVN_DIR = build/rtabmap-svn
|
2012-12-11 18:05:05 +00:00
|
|
|
SVN_URL = https://rtabmap.googlecode.com/svn/branches/attention/rtabmap
|
2011-08-23 17:56:20 +00:00
|
|
|
SVN_REVISION = -rHEAD
|
2011-06-20 16:49:22 +00:00
|
|
|
#SVN_PATCH = opencvVer.patch
|
|
|
|
|
include $(shell rospack find mk)/svn_checkout.mk
|
|
|
|
|
|
|
|
|
|
CMAKE = cmake
|
|
|
|
|
CMAKE_ARGS = -D CMAKE_BUILD_TYPE=RELEASE \
|
2012-06-24 17:19:34 +00:00
|
|
|
-D BUILD_LIBS_ONLY=ON \
|
|
|
|
|
-D BUILD_TESTS=OFF \
|
2011-06-20 16:49:22 +00:00
|
|
|
-D CMAKE_INSTALL_PREFIX=`rospack find rtabmap_lib`/$(INSTALL_DIR)
|
|
|
|
|
|
|
|
|
|
installed: $(SVN_DIR) patched
|
|
|
|
|
mkdir -p $(SVN_DIR)/build
|
|
|
|
|
cd $(SVN_DIR)/build && $(CMAKE) $(CMAKE_ARGS) ..
|
|
|
|
|
cd $(SVN_DIR)/build && make $(ROS_PARALLEL_JOBS) && make install
|
|
|
|
|
touch Makefile
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
-cd $(SVN_DIR)/build && make clean
|
|
|
|
|
rm -rf $(INSTALL_DIR) installed
|
|
|
|
|
|
|
|
|
|
.PHONY : clean download
|