Skip to content

Commit

Permalink
Update gtest to 1.10.0 version (#161)
Browse files Browse the repository at this point in the history
* Update gtest to 1.10.0 version

Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero authored Sep 24, 2021
1 parent 36be7f8 commit 70c018e
Show file tree
Hide file tree
Showing 45 changed files with 5,763 additions and 4,525 deletions.
1 change: 1 addition & 0 deletions urdf_parser/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ include_directories(
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)
target_compile_features(gtest PUBLIC cxx_std_11)

execute_process(COMMAND cmake -E remove_directory ${CMAKE_BINARY_DIR}/test_results)
execute_process(COMMAND cmake -E make_directory ${CMAKE_BINARY_DIR}/test_results)
Expand Down
157 changes: 0 additions & 157 deletions urdf_parser/test/gtest/CHANGES

This file was deleted.

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.

9 changes: 9 additions & 0 deletions urdf_parser/test/gtest/cmake/Config.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
if (@GTEST_HAS_PTHREAD@)
set(THREADS_PREFER_PTHREAD_FLAG @THREADS_PREFER_PTHREAD_FLAG@)
find_dependency(Threads)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
check_required_components("@project_name@")
10 changes: 10 additions & 0 deletions urdf_parser/test/gtest/cmake/gtest.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
prefix=${pcfiledir}/../..
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@

Name: gtest
Description: GoogleTest (without main() function)
Version: @PROJECT_VERSION@
URL: https://github.com/google/googletest
Libs: -L${libdir} -lgtest @CMAKE_THREAD_LIBS_INIT@
Cflags: -I${includedir} @GTEST_HAS_PTHREAD_MACRO@ @CMAKE_THREAD_LIBS_INIT@
11 changes: 11 additions & 0 deletions urdf_parser/test/gtest/cmake/gtest_main.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=${pcfiledir}/../..
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@

Name: gtest_main
Description: GoogleTest (with main() function)
Version: @PROJECT_VERSION@
URL: https://github.com/google/googletest
Requires: gtest
Libs: -L${libdir} -lgtest_main @CMAKE_THREAD_LIBS_INIT@
Cflags: -I${includedir} @GTEST_HAS_PTHREAD_MACRO@ @CMAKE_THREAD_LIBS_INIT@
Loading

0 comments on commit 70c018e

Please sign in to comment.