mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-10 11:59:50 +08:00
* Config: Using cmake targets * fixed RTABMAP_DEPRECATED build error * fixed melodic build * cleanup * Fixed qhull exported library error * Update svg depend private * removed g2o from public interface * Fixed Windows with external project * removed some required dep * Fixed nsis error (also fixed unspecified components) * updated workflow rules
44 lines
1.1 KiB
CMake
44 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
FIND_PACKAGE(yaml-cpp QUIET)
|
|
|
|
IF(NOT yaml-cpp_FOUND)
|
|
find_package(PkgConfig QUIET)
|
|
IF(PKG_CONFIG_FOUND)
|
|
pkg_check_modules(yaml_cpp QUIET yaml-cpp)
|
|
IF(yaml_cpp_FOUND)
|
|
SET(YAML_CPP_LIBRARIES ${yaml_cpp_LIBRARIES})
|
|
SET(YAML_CPP_INCLUDE_DIRS ${yaml_cpp_INCLUDEDIR})
|
|
SET(yaml-cpp_FOUND ${yaml_cpp_FOUND})
|
|
ENDIF(yaml_cpp_FOUND)
|
|
ENDIF(PKG_CONFIG_FOUND)
|
|
ENDIF(NOT yaml-cpp_FOUND)
|
|
|
|
IF(yaml-cpp_FOUND)
|
|
|
|
SET(INCLUDE_DIRS
|
|
${YAML_CPP_INCLUDE_DIRS}
|
|
)
|
|
|
|
SET(LIBRARIES
|
|
${YAML_CPP_LIBRARIES}
|
|
yaml-cpp
|
|
)
|
|
|
|
INCLUDE_DIRECTORIES(${INCLUDE_DIRS} yaml-cpp)
|
|
|
|
ADD_EXECUTABLE(euroc_dataset main.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(euroc_dataset rtabmap_core ${LIBRARIES})
|
|
|
|
SET_TARGET_PROPERTIES( euroc_dataset
|
|
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-euroc_dataset)
|
|
|
|
INSTALL(TARGETS euroc_dataset
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT runtime
|
|
BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime)
|
|
|
|
ELSE()
|
|
MESSAGE(STATUS "yaml-cpp not found, euroc_dataset tool won't be built...")
|
|
ENDIF()
|