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
3838 foonathan::lexy
3939 bt_sample_nodes)
4040
41- if (ament_cmake_FOUND AND BUILD_TESTING )
41+ if (ament_cmake_FOUND)
4242
4343 find_package (ament_cmake_gtest REQUIRED)
4444
@@ -55,7 +55,7 @@ elseif(catkin_FOUND AND CATKIN_ENABLE_TESTING)
5555 Threads::Threads
5656 ${catkin_LIBRARIES} )
5757
58- elseif ( NOT ament_cmake_FOUND AND NOT catkin_FOUND )
58+ else ( )
5959
6060 find_package (GTest REQUIRED)
6161 enable_testing ()
@@ -69,9 +69,5 @@ elseif(NOT ament_cmake_FOUND AND NOT catkin_FOUND)
6969
7070endif ()
7171
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