forked from vesoft-inc/nebula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindProxygen.cmake
31 lines (26 loc) · 869 Bytes
/
FindProxygen.cmake
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
29
# - Try to find Proxygen includes dirs and libraries
#
# Usage of this module as follows:
#
# find_package(Proxygen)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# Variables defined by this module:
#
# Proxygen_FOUND System has Proxygen, include and lib dirs found
# Proxygen_INCLUDE_DIR The Proxygen includes directories.
# Proxygen_LIBRARY The Proxygen library.
find_path(Proxygen_INCLUDE_DIR NAMES proxygen)
find_library(Proxygen_LIBRARY NAMES libproxygenlib.a)
if(Proxygen_INCLUDE_DIR AND Proxygen_LIBRARY)
set(Proxygen_FOUND TRUE)
mark_as_advanced(
Proxygen_INCLUDE_DIR
Proxygen_LIBRARY
)
endif(Proxygen_INCLUDE_DIR AND Proxygen_LIBRARY)
if(NOT Proxygen_FOUND)
message(FATAL_ERROR "Proxygen doesn't exist")
endif()