File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ set(TEST_DEPENDECIES
38
38
foonathan::lexy
39
39
bt_sample_nodes )
40
40
41
- if (ament_cmake_FOUND AND BUILD_TESTING )
41
+ if (ament_cmake_FOUND )
42
42
43
43
find_package (ament_cmake_gtest REQUIRED )
44
44
@@ -55,7 +55,7 @@ elseif(catkin_FOUND AND CATKIN_ENABLE_TESTING)
55
55
Threads::Threads
56
56
${catkin_LIBRARIES} )
57
57
58
- elseif ( NOT ament_cmake_FOUND AND NOT catkin_FOUND )
58
+ else ( )
59
59
60
60
find_package (GTest REQUIRED )
61
61
enable_testing ()
@@ -69,9 +69,5 @@ elseif(NOT ament_cmake_FOUND AND NOT catkin_FOUND)
69
69
70
70
endif ()
71
71
72
- if (TARGET ${BT_CPP_LIBRARY} _test )
73
-
74
- target_include_directories (${BTCPP_LIBRARY} _test PRIVATE include ${PROJECT_SOURCE_DIR} /3rdparty )
75
- target_compile_definitions (${BTCPP_LIBRARY} _test PRIVATE BT_TEST_FOLDER= "${CMAKE_CURRENT_SOURCE_DIR} " )
76
-
77
- endif ()
72
+ target_include_directories (${BTCPP_LIBRARY} _test PRIVATE include ${PROJECT_SOURCE_DIR} /3rdparty )
73
+ target_compile_definitions (${BTCPP_LIBRARY} _test PRIVATE BT_TEST_FOLDER= "${CMAKE_CURRENT_SOURCE_DIR} " )
You can’t perform that action at this time.
0 commit comments