-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GoogleTest to latest version (#269)
* Remove old gtest version * Add new vendored Googletest version * Move test_config H to HH * CMake updates for new googletest version * Test updates for new googletest version Signed-off-by: Michael Carroll <michael@openrobotics.org>
- Loading branch information
Showing
65 changed files
with
11,431 additions
and
20,776 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
configure_file(test_config.h.in ${PROJECT_BINARY_DIR}/test_config.h) | ||
|
||
# Build gtest | ||
add_library(gtest STATIC gtest/src/gtest-all.cc) | ||
add_library(gtest_main STATIC gtest/src/gtest_main.cc) | ||
target_include_directories(gtest | ||
SYSTEM PUBLIC | ||
${PROJECT_SOURCE_DIR}/test/gtest/include | ||
PRIVATE | ||
${PROJECT_SOURCE_DIR}/test/gtest | ||
configure_file (test_config.hh.in ${PROJECT_BINARY_DIR}/include/test_config.hh) | ||
include_directories ( | ||
${PROJECT_BINARY_DIR}/include | ||
) | ||
|
||
target_link_libraries(gtest_main gtest) | ||
set_property(TARGET gtest_main PROPERTY CXX_STANDARD ${c++standard}) | ||
set_property(TARGET gtest PROPERTY CXX_STANDARD ${c++standard}) | ||
set(GTEST_LIBRARY "${PROJECT_BINARY_DIR}/test/libgtest.a") | ||
set(GTEST_MAIN_LIBRARY "${PROJECT_BINARY_DIR}/test/libgtest_main.a") | ||
|
||
execute_process(COMMAND cmake -E remove_directory ${CMAKE_BINARY_DIR}/test_results) | ||
execute_process(COMMAND cmake -E make_directory ${CMAKE_BINARY_DIR}/test_results) | ||
|
||
add_subdirectory(gtest_vendor) | ||
add_subdirectory(integration) | ||
add_subdirectory(performance) | ||
add_subdirectory(regression) |
Oops, something went wrong.