2011-06-05 14:45:39 +00:00
|
|
|
|
|
|
|
|
SET(SRC_FILES
|
|
|
|
|
main.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
SET(INCLUDE_DIRS
|
2013-04-30 20:16:01 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/utilite/include
|
2012-06-24 17:19:34 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/corelib/include
|
2011-06-05 14:45:39 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
|
${OpenCV_INCLUDE_DIRS}
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../include
|
2013-12-11 00:12:44 +00:00
|
|
|
${PCL_INCLUDE_DIRS}
|
2011-06-05 14:45:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
SET(LIBRARIES
|
|
|
|
|
${OpenCV_LIBRARIES}
|
2013-12-11 00:12:44 +00:00
|
|
|
${PCL_LIBRARIES}
|
2011-06-05 14:45:39 +00:00
|
|
|
)
|
|
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
add_definitions(${PCL_DEFINITIONS})
|
|
|
|
|
|
2011-06-05 14:45:39 +00:00
|
|
|
# Make sure the compiler can find include files from our library.
|
|
|
|
|
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
|
|
|
|
|
|
|
|
|
# Add binary called "consoleApp" that is built from the source file "main.cpp".
|
|
|
|
|
# The extension is automatically found.
|
|
|
|
|
ADD_EXECUTABLE(consoleApp ${SRC_FILES})
|
2013-12-11 00:12:44 +00:00
|
|
|
TARGET_LINK_LIBRARIES(consoleApp rtabmap_core rtabmap_utilite ${LIBRARIES})
|
2011-06-05 14:45:39 +00:00
|
|
|
|
|
|
|
|
SET_TARGET_PROPERTIES( consoleApp
|
|
|
|
|
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-console)
|
|
|
|
|
|