mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-04 09:07:47 +08:00
* Moved bin directory inside build directory (to make easier different builds with same source directory) * Switched include order to avoid problems with remaining Version.h still in source directory taen before the one in binary dir. Fixed android build (updated res tool search path). * workflow-cmake: fixed path to bin directory
26 lines
668 B
CMake
26 lines
668 B
CMake
SET(INCLUDE_DIRS
|
|
${PROJECT_BINARY_DIR}/corelib/include
|
|
${PROJECT_SOURCE_DIR}/corelib/include
|
|
${PROJECT_SOURCE_DIR}/utilite/include
|
|
${OpenCV_INCLUDE_DIRS}
|
|
${PCL_INCLUDE_DIRS}
|
|
)
|
|
|
|
SET(LIBRARIES
|
|
${OpenCV_LIBRARIES}
|
|
${PCL_LIBRARIES}
|
|
)
|
|
|
|
add_definitions(${PCL_DEFINITIONS})
|
|
|
|
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
|
|
|
ADD_EXECUTABLE(camera main.cpp)
|
|
TARGET_LINK_LIBRARIES(camera rtabmap_core rtabmap_utilite ${LIBRARIES})
|
|
|
|
SET_TARGET_PROPERTIES( camera
|
|
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-camera)
|
|
|
|
INSTALL(TARGETS camera
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT runtime
|
|
BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime) |