since googletest 1.8.1, the target should be GTest::gtest, I believe. Unfortunately, the cmake (kitware) supplied module uses a different name.
|
TARGET_LINK_LIBRARIES(${NAME} wave_geometry GTest::Main) |
GTest::gtest_main here.
I think the thought of the googletest project is to supply gmock and gtest both under the GTest cmake namespace with proper transitive dependencies, which would be difficult for the cmake (kitware) module to provide.
wave_geometry/cmake/AddGTest.cmake
Line 7 in c9dd47d
since googletest
1.8.1, the target should beGTest::gtest, I believe. Unfortunately, the cmake (kitware) supplied module uses a different name.wave_geometry/cmake/WaveGeometryHelpers.cmake
Line 26 in c9dd47d
GTest::gtest_mainhere.I think the thought of the googletest project is to supply gmock and gtest both under the
GTestcmake namespace with proper transitive dependencies, which would be difficult for the cmake (kitware) module to provide.