Skip to content

Commit

Permalink
Add gtest to Fetch content #550
Browse files Browse the repository at this point in the history
  • Loading branch information
pgawro committed Oct 29, 2023
1 parent 3230caf commit 1615584
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ if (NOT GTEST_ROOT)
if (DEFINED ENV{GTEST_ROOT})
set(GTEST_ROOT $ENV{GTEST_ROOT})
else()
set(GTEST_ROOT "n/a" CACHE STRING "Path to root folder of googletest. Must be set for building the tests.")
include(FetchContent)
FetchContent_Declare(googletest GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG v1.14.0)
FetchContent_Populate(googletest)
set(GTEST_ROOT ${googletest_SOURCE_DIR})
endif()
endif()

Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ Optional:
- A C++14 enabled compiler is needed (default for gcc >= v6.1).
- vsomeip uses CMake as buildsystem.
- vsomeip uses Boost >= 1.55.0:

For the tests Google's test framework https://code.google.com/p/googletest/[gtest] is needed.
-- URL: https://googletest.googlecode.com/files/gtest-<version>.zip
- Google's test framework (downloaded automaticaly)

To build the documentation asciidoc, source-highlight, doxygen and graphviz is needed:
--`sudo apt-get install asciidoc source-highlight doxygen graphviz`
Expand Down

0 comments on commit 1615584

Please sign in to comment.