summaryrefslogtreecommitdiff
path: root/indra/cmake/GoogleMock.cmake
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@gmail.com>2022-04-19 20:28:34 +0200
committerNicky <nicky.dasmijn@gmail.com>2022-04-19 20:28:34 +0200
commitd6b34d41afc1f77a28e60ae1f9e22b61323052fa (patch)
treed673e49924286318e3a25219f0507ce0104504ef /indra/cmake/GoogleMock.cmake
parentca839307f9edb5f5b6807a2a7185733518c241cf (diff)
Finishing touches, making sure even with conan all needed 3ps are installed and usable.
This brings the source to be able to run tests in conan mode.
Diffstat (limited to 'indra/cmake/GoogleMock.cmake')
-rw-r--r--indra/cmake/GoogleMock.cmake12
1 files changed, 7 insertions, 5 deletions
diff --git a/indra/cmake/GoogleMock.cmake b/indra/cmake/GoogleMock.cmake
index 753b972e95..e4520fe96e 100644
--- a/indra/cmake/GoogleMock.cmake
+++ b/indra/cmake/GoogleMock.cmake
@@ -4,16 +4,18 @@ include(Linking)
include_guard()
+add_library( ll::googlemock INTERFACE IMPORTED )
if(USE_CONAN)
- return()
+ target_link_libraries( ll::googlemock INTERFACE CONAN_PKG::gtest )
+
+ #Not very nice, but for the moment we need this for tut.hpp
+ target_include_directories( ll::googlemock SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include )
+ return()
endif()
-add_library( ll::googlemock INTERFACE IMPORTED )
use_prebuilt_binary(googlemock)
-target_include_directories( ll::googlemock SYSTEM INTERFACE
- ${LIBS_PREBUILT_DIR}/include
- )
+target_include_directories( ll::googlemock SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include )
if (LINUX)
# VWR-24366: gmock is underlinked, it needs gtest.