blob: 23558364bba7cb0ea3bd667571039304fbb243bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# -*- cmake -*-
include(Prebuilt)
include(Linking)
include_guard()
use_prebuilt_binary(googlemock)
create_target( ll::googlemock )
set_target_include_dirs( ll::googlemock
${LIBS_PREBUILT_DIR}/include
)
if (LINUX)
# VWR-24366: gmock is underlinked, it needs gtest.
target_link_libraries( ll::googlemock INTERFACE gmock gtest)
elseif(WINDOWS)
target_link_libraries( ll::googlemock INTERFACE gmock)
set_target_include_dirs( ll::googlemock
${LIBS_PREBUILT_DIR}/include
${LIBS_PREBUILT_DIR}/include/gmock)
elseif(DARWIN)
target_link_libraries( ll::googlemock INTERFACE gmock gtest)
endif(LINUX)
|