forked from facebook/fbthrift
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Add support for cmake tests Reviewed By: juchem Differential Revision: D4405983 fbshipit-source-id: 43af1ccdef3bde965727ce2f010281cc9ec514ec
- Loading branch information
1 parent
35c85fa
commit b3160ef
Showing
3 changed files
with
76 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# - Try to find Google's GMock library | ||
# This will define | ||
# GMOCK_FOUND | ||
# GMOCK_INCLUDE_DIRS | ||
# GMOCK_LIBRARIES | ||
# GMOCK_MAIN_LIBRARIES | ||
# GMOCK_BOTH_LIBRARIES | ||
|
||
find_path(GMOCK_INCLUDE_DIRS gmock/gmock.h | ||
HINTS | ||
$ENV{GMOCK_ROOT}/include | ||
${GMOCK_ROOT}/include | ||
) | ||
mark_as_advanced(GMOCK_INCLUDE_DIRS) | ||
|
||
find_library(GMOCK_LIBRARIES | ||
NAMES gmock | ||
HINTS | ||
ENV GMOCK_ROOT | ||
${GMOCK_ROOT} | ||
) | ||
mark_as_advanced(GMOCK_LIBRARIES) | ||
|
||
find_library(GMOCK_MAIN_LIBRARIES | ||
NAMES gmock_main | ||
HINTS | ||
ENV GMOCK_ROOT | ||
${GMOCK_ROOT} | ||
) | ||
mark_as_advanced(GMOCK_LIBRARIES) | ||
|
||
set(GMOCK_BOTH_LIBRARIES ${GMOCK_LIBRARIES} ${GMOCK_MAIN_LIBRARIES}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args( | ||
GMock GMOCK_LIBRARIES GMOCK_INCLUDE_DIRS GMOCK_MAIN_LIBRARIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters