summaryrefslogtreecommitdiff
path: root/indra/cmake/GoogleMock.cmake
blob: 1f161ec4ff8c56add7a7ad50edfa4dddce773816 (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
# -*- 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.
    set_target_libraries( ll::googlemock gmock gtest)
elseif(WINDOWS)
    set_target_libraries( ll::googlemock gmock)
    set_target_include_dirs( ll::googlemock
            ${LIBS_PREBUILT_DIR}/include
            ${LIBS_PREBUILT_DIR}/include/gmock)

elseif(DARWIN)
    set_target_libraries( ll::googlemock gmock gtest)
endif(LINUX)