Skip to content

Commit

Permalink
Remove gtest from the sources. (#153)
Browse files Browse the repository at this point in the history
It is only used very sparingly, and gets rid of a vendored
package that causes warnings.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Apr 7, 2021
1 parent 0cce332 commit 923c05a
Show file tree
Hide file tree
Showing 46 changed files with 14 additions and 33,896 deletions.
24 changes: 3 additions & 21 deletions urdf_parser/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,31 +1,13 @@
include_directories (
${CMAKE_CURRENT_SOURCE_DIR}/gtest/include
${CMAKE_CURRENT_SOURCE_DIR}/gtest
${CMAKE_CURRENT_SOURCE_DIR}
)

# Build gtest
add_library(gtest STATIC gtest/src/gtest-all.cc)
add_library(gtest_main STATIC gtest/src/gtest_main.cc)
target_link_libraries(gtest_main gtest)

execute_process(COMMAND cmake -E remove_directory ${CMAKE_BINARY_DIR}/test_results)
execute_process(COMMAND cmake -E make_directory ${CMAKE_BINARY_DIR}/test_results)
include_directories(${GTEST_INCLUDE_DIRS})

# unit test to fix geometry problems
set(tests
urdf_unit_test.cpp)

#################################################
# Build all the tests
foreach(GTEST_SOURCE_file ${tests})
string(REGEX REPLACE ".cpp" "" BINARY_NAME ${GTEST_SOURCE_file})
add_executable(${BINARY_NAME} ${GTEST_SOURCE_file})
foreach(test_file ${tests})
string(REGEX REPLACE ".cpp" "" BINARY_NAME ${test_file})

add_executable(${BINARY_NAME} ${test_file})
target_link_libraries(${BINARY_NAME}
gtest_main
gtest
urdfdom_model
)
if (UNIX)
Expand Down
157 changes: 0 additions & 157 deletions urdf_parser/test/gtest/CHANGES

This file was deleted.

Empty file.
37 changes: 0 additions & 37 deletions urdf_parser/test/gtest/CONTRIBUTORS

This file was deleted.

28 changes: 0 additions & 28 deletions urdf_parser/test/gtest/LICENSE

This file was deleted.

Loading

0 comments on commit 923c05a

Please sign in to comment.