summaryrefslogtreecommitdiff
path: root/indra/cmake/GoogleMock.cmake
blob: 5a00546927d401e7a861bfab473178998fc7984a (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
# -*- cmake -*-
include(Prebuilt)
include(Linking)

use_prebuilt_binary(googlemock)

set(GOOGLEMOCK_INCLUDE_DIRS
    ${LIBS_PREBUILT_DIR}/include)

if (LINUX)
    # VWR-24366: gmock is underlinked, it needs gtest.
    set(GOOGLEMOCK_LIBRARIES
        gmock -Wl,--no-as-needed
        gtest -Wl,--as-needed)
elseif(WINDOWS)
    set(GOOGLEMOCK_LIBRARIES
        gmock)
    set(GOOGLEMOCK_INCLUDE_DIRS
        ${LIBS_PREBUILT_DIR}/include
        ${LIBS_PREBUILT_DIR}/include/gmock
        ${LIBS_PREBUILT_DIR}/include/gmock/boost/tr1/tr1)
elseif(DARWIN)
    set(GOOGLEMOCK_LIBRARIES
        gmock
        gtest)
endif(LINUX)