EVerest / libevse-security

Apache License 2.0
7 stars 5 forks source link

Import Google Test via CMake FetchContent #51

Closed folkengine closed 4 months ago

folkengine commented 4 months ago

This PR removes GTest from the dependencies.yaml file and replaces it with:

include(FetchContent)
FetchContent_Declare(
        gtest
        GIT_REPOSITORY https://github.com/google/googletest.git
        GIT_TAG release-1.12.1 
)
FetchContent_MakeAvailable(gtest)

This avoids collisions between libraries over GTest versions.

folkengine commented 4 months ago

@shankari can you please review?