Fix FBString under MSVC
[folly.git] / CMake / FindGMock.cmake
1 #
2 # Find libgmock
3 #
4 #  LIBGMOCK_INCLUDE_DIR - where to find gmock/gmock.h, etc.
5 #  LIBGMOCK_LIBRARY     - List of libraries when using libgmock.
6 #  LIBGMOCK_FOUND       - True if libgmock found.
7
8
9 IF (LIBGMOCK_INCLUDE_DIR)
10   # Already in cache, be silent
11   SET(LIBGMOCK_FIND_QUIETLY TRUE)
12 ENDIF ()
13
14 FIND_PATH(LIBGMOCK_INCLUDE_DIR gmock/gmock.h)
15
16 FIND_LIBRARY(LIBGMOCK_LIBRARY gmock_main)
17
18 # handle the QUIETLY and REQUIRED arguments and set LIBGMOCK_FOUND to TRUE if
19 # all listed variables are TRUE
20 INCLUDE(FindPackageHandleStandardArgs)
21 FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBGMOCK DEFAULT_MSG LIBGMOCK_LIBRARY LIBGMOCK_INCLUDE_DIR)
22
23 MARK_AS_ADVANCED(LIBGMOCK_LIBRARY LIBGMOCK_INCLUDE_DIR)