1 # Copyright (c) 2010-2011 Phorm, Inc.
2 # License: GNU LGPL v 3.0, see http://www.gnu.org/licenses/lgpl-3.0-standalone.html
3 # Author: Andrey Skryabin <andrew@zmqmessage.org>, et al.
6 # Find the zeromq includes and library
8 # ZEROMQ_INCLUDE_DIR - Where to find zeromq include sub-directory.
9 # ZEROMQ_LIBRARIES - List of libraries when using zeromq.
10 # ZEROMQ_FOUND - True if zeromq found.
12 IF (ZEROMQ_INCLUDE_DIR)
13 # Already in cache, be silent.
14 SET(ZEROMQ_FIND_QUIETLY TRUE)
15 ENDIF (ZEROMQ_INCLUDE_DIR)
17 FIND_PATH(ZEROMQ_INCLUDE_DIR zmq.hpp)
20 FIND_LIBRARY(ZEROMQ_LIBRARY NAMES ${ZEROMQ_NAMES} )
22 # Handle the QUIETLY and REQUIRED arguments and set ZEROMQ_FOUND to
23 # TRUE if all listed variables are TRUE.
24 INCLUDE(FindPackageHandleStandardArgs)
25 FIND_PACKAGE_HANDLE_STANDARD_ARGS(
27 ZEROMQ_LIBRARY ZEROMQ_INCLUDE_DIR
31 SET( ZEROMQ_LIBRARIES ${ZEROMQ_LIBRARY} )
33 SET( ZEROMQ_LIBRARIES )