build: turn tests off by default in catkin and standalone builds
BUILD_ROBOT_TF3_GEOMETRY_MSGS_TESTS and BUILD_ROBOT_TF3_SENSOR_MSGS_TESTS now default to OFF in both build modes instead of following BUILDING_WITH_CATKIN. Enable the tests with -D<option>=ON.
This commit is contained in:
@@ -164,11 +164,8 @@ endif()
|
||||
# ========================================================
|
||||
# Test executables
|
||||
# ========================================================
|
||||
# Tests are a development-machine concern: a catkin workspace is where they run,
|
||||
# while the standalone CMake build is the robot deployment path and must not
|
||||
# produce test executables. Force with -DBUILD_ROBOT_TF3_GEOMETRY_MSGS_TESTS=ON to build them
|
||||
# from a standalone build.
|
||||
option(BUILD_ROBOT_TF3_GEOMETRY_MSGS_TESTS "Build the robot_tf3_geometry_msgs unit tests" ${BUILDING_WITH_CATKIN})
|
||||
# Tests are OFF by default in both build modes; enable with -DBUILD_ROBOT_TF3_GEOMETRY_MSGS_TESTS=ON.
|
||||
option(BUILD_ROBOT_TF3_GEOMETRY_MSGS_TESTS "Build the robot_tf3_geometry_msgs unit tests" OFF)
|
||||
|
||||
if(BUILD_ROBOT_TF3_GEOMETRY_MSGS_TESTS AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/test/test_tomsg_frommsg.cpp)
|
||||
add_executable(${PROJECT_NAME}_tomsg_frommsg_test test/test_tomsg_frommsg.cpp)
|
||||
|
||||
@@ -166,11 +166,8 @@ endif()
|
||||
# # ========================================================
|
||||
# # Test executables
|
||||
# # ========================================================
|
||||
# Tests are a development-machine concern: a catkin workspace is where they run,
|
||||
# while the standalone CMake build is the robot deployment path and must not
|
||||
# produce test executables. Force with -DBUILD_ROBOT_TF3_SENSOR_MSGS_TESTS=ON to build them
|
||||
# from a standalone build.
|
||||
option(BUILD_ROBOT_TF3_SENSOR_MSGS_TESTS "Build the robot_tf3_sensor_msgs unit tests" ${BUILDING_WITH_CATKIN})
|
||||
# Tests are OFF by default in both build modes; enable with -DBUILD_ROBOT_TF3_SENSOR_MSGS_TESTS=ON.
|
||||
option(BUILD_ROBOT_TF3_SENSOR_MSGS_TESTS "Build the robot_tf3_sensor_msgs unit tests" OFF)
|
||||
|
||||
if(BUILD_ROBOT_TF3_SENSOR_MSGS_TESTS AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/test/test_tf2_sensor_msgs.cpp)
|
||||
add_executable(${PROJECT_NAME}_test test/test_tf2_sensor_msgs.cpp)
|
||||
|
||||
Reference in New Issue
Block a user