mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-11 12:29:50 +08:00
Added DBDriverSqlite3 tests
This commit is contained in:
+9
-7
@@ -185,15 +185,17 @@ if(BUILD_TESTING)
|
||||
set(TEST_DATA_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/data")
|
||||
endif()
|
||||
|
||||
OPTION(ENABLE_COVERAGE "Build with gcov/llvm coverage instrumentation (for CI)" OFF)
|
||||
OPTION(ENABLE_COVERAGE "Build with gcov/lcov coverage (GCC/Clang, Debug only; see coverage-report.sh)" OFF)
|
||||
IF(ENABLE_COVERAGE)
|
||||
IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||
MESSAGE(STATUS "Coverage instrumentation enabled")
|
||||
ADD_COMPILE_OPTIONS(--coverage -O0 -g)
|
||||
ADD_LINK_OPTIONS(--coverage)
|
||||
ELSE()
|
||||
MESSAGE(WARNING "ENABLE_COVERAGE is only supported with GCC or Clang")
|
||||
IF(NOT CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||
MESSAGE(FATAL_ERROR "ENABLE_COVERAGE requires GCC or Clang with gcov/lcov (current: ${CMAKE_CXX_COMPILER_ID}).")
|
||||
ENDIF()
|
||||
IF(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
MESSAGE(FATAL_ERROR "ENABLE_COVERAGE requires CMAKE_BUILD_TYPE=Debug (current: \"${CMAKE_BUILD_TYPE}\").")
|
||||
ENDIF()
|
||||
MESSAGE(STATUS "Coverage instrumentation enabled")
|
||||
ADD_COMPILE_OPTIONS(--coverage -O0 -g)
|
||||
ADD_LINK_OPTIONS(--coverage)
|
||||
ENDIF()
|
||||
|
||||
####### DEPENDENCIES #######
|
||||
|
||||
Reference in New Issue
Block a user