1# - Try to find ZeroMQ headers and libraries
2# - THANKS CUBIT FOR THIS FIND MODULE
3#
4# Usage of this module as follows:
5#
6#     find_package(ZeroMQ)
7#
8# Variables used by this module, they can change the default behaviour and need
9# to be set before calling find_package:
10#
11#  ZeroMQ_ROOT_DIR  Set this variable to the root installation of
12#                            ZeroMQ if the module has problems finding
13#                            the proper installation path.
14#
15# Variables defined by this module:
16#
17#  ZEROMQ_FOUND              System has ZeroMQ libs/headers
18#  ZeroMQ_LIBRARIES          The ZeroMQ libraries
19#  ZeroMQ_INCLUDE_DIR        The location of ZeroMQ headers
20
21find_path(ZeroMQ_ROOT_DIR
22    NAMES include/zmq.hpp
23)
24
25find_library(ZeroMQ_LIBRARIES
26    NAMES zmq
27    HINTS ${ZeroMQ_ROOT_DIR}/lib
28)
29
30find_path(ZeroMQ_INCLUDE_DIR
31    NAMES zmq.hpp
32    HINTS ${ZeroMQ_ROOT_DIR}/include
33)
34
35include(FindPackageHandleStandardArgs)
36find_package_handle_standard_args(ZeroMQ DEFAULT_MSG
37    ZeroMQ_LIBRARIES
38    ZeroMQ_INCLUDE_DIR
39)
40
41mark_as_advanced(
42    ZeroMQ_ROOT_DIR
43    ZeroMQ_LIBRARIES
44    ZeroMQ_INCLUDE_DIR
45)
46