moveit_task_constructor/capabilities/test/CMakeLists.txt
Robert Haschke 4a42072e96
Some checks failed
CI / ${{ matrix.env.IMAGE }}${{ matrix.env.NAME && ' • ' || ''}}${{ matrix.env.NAME }}${{ matrix.env.CLANG_TIDY && ' • clang-tidy' || '' }} (map[CLANG_TIDY:pedantic IMAGE:rolling-source]) (push) Has been cancelled
CI / ${{ matrix.env.IMAGE }}${{ matrix.env.NAME && ' • ' || ''}}${{ matrix.env.NAME }}${{ matrix.env.CLANG_TIDY && ' • clang-tidy' || '' }} (map[DOCKER_RUN_OPTS:-e PRELOAD=libasan.so.8 -e LSAN_OPTIONS="suppressions=$PWD/.github/workflows/lsan.suppressio… (push) Has been cancelled
CI / ${{ matrix.env.IMAGE }}${{ matrix.env.NAME && ' • ' || ''}}${{ matrix.env.NAME }}${{ matrix.env.CLANG_TIDY && ' • clang-tidy' || '' }} (map[IMAGE:rolling-source NAME:ccov TARGET_CMAKE_ARGS:-DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage"]) (push) Has been cancelled
Format / pre-commit (push) Has been cancelled
Replace deprecated ament_target_dependencies()
2025-09-10 12:15:43 +02:00

16 lines
578 B
CMake

#############
## Testing ##
#############
## Add gtest based cpp test target
if (BUILD_TESTING AND NOT (CMAKE_CXX_FLAGS MATCHES "-fsanitize"))
find_package(ament_cmake_gtest REQUIRED)
find_package(launch_testing_ament_cmake REQUIRED)
find_package(moveit_task_constructor_core REQUIRED)
ament_add_gtest_executable(test_execution test_task_execution.cpp)
add_launch_test(test_execution.launch.py TARGET test_execution
ARGS "test_binary:=$<TARGET_FILE:test_execution>")
target_link_libraries(test_execution ${moveit_task_constructor_core_TARGETS})
endif()