build: add BUILD_DOCK_PATTERN_DETECTOR_TESTS option, off by default
Tests used to build whenever CATKIN_ENABLE_TESTING was on. They now also need -DBUILD_DOCK_PATTERN_DETECTOR_TESTS=ON, in both build modes.
This commit is contained in:
@@ -152,7 +152,10 @@ endif()
|
||||
# ========================================================
|
||||
# Tests
|
||||
# ========================================================
|
||||
if(CATKIN_ENABLE_TESTING AND BUILDING_WITH_CATKIN)
|
||||
# Tests are OFF by default in both build modes; enable with -DBUILD_DOCK_PATTERN_DETECTOR_TESTS=ON.
|
||||
option(BUILD_DOCK_PATTERN_DETECTOR_TESTS "Build the dock_pattern_detector unit tests" OFF)
|
||||
|
||||
if(BUILD_DOCK_PATTERN_DETECTOR_TESTS AND CATKIN_ENABLE_TESTING AND BUILDING_WITH_CATKIN)
|
||||
|
||||
if(NOT COMMAND catkin_add_gtest)
|
||||
message(FATAL_ERROR "catkin_add_gtest NOT FOUND")
|
||||
|
||||
Reference in New Issue
Block a user