Skip to content

Commit

Permalink
Merge pull request #70 from faustocarva/put_gtest_on_cmake
Browse files Browse the repository at this point in the history
Adds a find_package to GTest when tests are ON.
  • Loading branch information
Thalhammer authored Jun 3, 2020
2 parents c9ef90d + 6028685 commit 72553b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(OpenSSL 1.0.2 REQUIRED)

if(BUILD_TESTS)
find_package(GTest REQUIRED)
endif()

if(EXTERNAL_PICOJSON)
find_package(picojson REQUIRED)
endif()
Expand Down

0 comments on commit 72553b2

Please sign in to comment.