forked from zeromq/czmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindZeroMQ.cmake
36 lines (31 loc) · 1.63 KB
/
FindZeroMQ.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
30
31
32
33
34
35
36
################################################################################
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
# Please refer to the README for information about making permanent changes. #
################################################################################
include(FindPkgConfig)
PKG_CHECK_MODULES(PC_ZEROMQ "libzmq")
IF (NOT PC_ZEROMQ_FOUND)
PKG_CHECK_MODULES(PC_ZEROMQ "zmq")
ENDIF (NOT PC_ZEROMQ_FOUND)
# some libraries install the headers is a subdirectory of the include dir
# returned by pkg-config, so use a wildcard match to improve chances of finding
# headers and SOs.
find_path(
ZEROMQ_INCLUDE_DIRS
NAMES zmq.h
HINTS ${PC_ZEROMQ_INCLUDE_DIRS} ${PC_ZEROMQ_INCLUDE_DIRS}/*
)
find_library(
ZEROMQ_LIBRARIES
NAMES zmq
HINTS ${PC_ZEROMQ_LIBRARY_DIRS} ${PC_ZEROMQ_LIBRARY_DIRS}/*
)
IF (NOT ZEROMQ_INCLUDE_DIRS STREQUAL ZEROMQ_INCLUDE_DIRS-NOTFOUND AND NOT ZEROMQ_LIBRARIES STREQUAL ZEROMQ_LIBRARIES-NOTFOUND)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZEROMQ DEFAULT_MSG ZEROMQ_LIBRARIES ZEROMQ_INCLUDE_DIRS)
mark_as_advanced(ZEROMQ_LIBRARIES ZEROMQ_INCLUDE_DIRS)
ENDIF (NOT ZEROMQ_INCLUDE_DIRS STREQUAL ZEROMQ_INCLUDE_DIRS-NOTFOUND AND NOT ZEROMQ_LIBRARIES STREQUAL ZEROMQ_LIBRARIES-NOTFOUND)
################################################################################
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
# Please refer to the README for information about making permanent changes. #
################################################################################