blob: 58975df62eb4dd9a3ecd4d0df7c0c7107c241437 (
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
27
28
29
|
# -*- cmake -*-
include(Prebuilt)
include(Linking)
use_prebuilt_binary(googlemock)
if( TARGET googlemock::googlemock )
return()
endif()
create_target( googlemock::googlemock )
set_target_include_dirs( googlemock::googlemock
${LIBS_PREBUILT_DIR}/include
)
if (LINUX)
# VWR-24366: gmock is underlinked, it needs gtest.
set_target_libraries( googlemock::googlemock gmock gtest)
elseif(WINDOWS)
set_target_libraries( googlemock::googlemock gmock)
set_target_include_dirs( googlemock::googlemock
${LIBS_PREBUILT_DIR}/include
${LIBS_PREBUILT_DIR}/include/gmock
${LIBS_PREBUILT_DIR}/include/gmock/boost/tr1/tr1 )
elseif(DARWIN)
set_target_libraries( googlemock::googlemock gmock gtest)
endif(LINUX)
|