PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/cmake/GoogleMock.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 28 lines | 21 code | 5 blank | 2 comment | 1 complexity | 60c4ac9c41ebff88c8a7ae17719aab43 MD5 | raw file
 1# -*- cmake -*-
 2include(Prebuilt)
 3include(Linking)
 4
 5use_prebuilt_binary(googlemock)
 6
 7set(GOOGLEMOCK_INCLUDE_DIRS 
 8    ${LIBS_PREBUILT_DIR}/include)
 9
10if (LINUX)
11    # VWR-24366: gmock is underlinked, it needs gtest.
12    set(GOOGLEMOCK_LIBRARIES 
13        gmock -Wl,--no-as-needed
14        gtest -Wl,--as-needed)
15elseif(WINDOWS)
16    set(GOOGLEMOCK_LIBRARIES 
17        gmock)
18    set(GOOGLEMOCK_INCLUDE_DIRS 
19        ${LIBS_PREBUILT_DIR}/include
20        ${LIBS_PREBUILT_DIR}/include/gmock
21        ${LIBS_PREBUILT_DIR}/include/gmock/boost/tr1/tr1)
22elseif(DARWIN)
23    set(GOOGLEMOCK_LIBRARIES
24        gmock
25        gtest)
26endif(LINUX)
27
28