From b303d7645e5d02433a966ed136a0173e40354758 Mon Sep 17 00:00:00 2001 From: v4hn Date: Mon, 23 Sep 2024 00:11:35 +0200 Subject: [PATCH] gate test with ENABLE_TESTING --- rosatomic/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rosatomic/CMakeLists.txt b/rosatomic/CMakeLists.txt index 70e8c8c..136abe1 100644 --- a/rosatomic/CMakeLists.txt +++ b/rosatomic/CMakeLists.txt @@ -9,7 +9,10 @@ catkin_package( LIBRARIES # TODO ) include_directories(include ${catkin_INCLUDE_DIRS}) -catkin_add_gtest(utest test/utest.cpp) + +if(CATKIN_ENABLE_TESTING) + catkin_add_gtest(utest test/utest.cpp) +endif() install(DIRECTORY include/ros include/boost DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION})