conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
921 stars 1.66k forks source link

[question] GoogleTest and CMake #8535

Open nikoladsp opened 2 years ago

nikoladsp commented 2 years ago

Hi, I am using following conanfile.txt

[requires]
oatpp/1.2.5
oatpp-postgresql/1.2.5
oatpp-swagger/1.2.5
poco/1.9.4
gtest/1.11.0

[options]
gtest:shared=True

[generators]
txt
cmake
cmake_find_package
cmake_paths

However, I cant find a way to use anything GoogleTest related in my project: it cant find neither header files, nor libraries. Can Conan work with GoogleTest at all? Or it is CMake thing?

Thank you in advance

samuel-emrys commented 2 years ago

Can you share how you're using gtest in your CMakeLists.txt?