Warning, /jana2/cmake/FindZeroMQ.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find ZeroMQ
0002 # Once done this will define
0003 # ZeroMQ_FOUND - System has ZeroMQ
0004 # ZeroMQ_INCLUDE_DIRS - The ZeroMQ include directories
0005 # ZeroMQ_LIBRARIES - The libraries needed to use ZeroMQ
0006 # ZeroMQ_DEFINITIONS - Compiler switches required for using ZeroMQ
0007
0008 find_path (ZeroMQ_INCLUDE_DIR zmq.h)
0009 find_library (ZeroMQ_LIBRARY NAMES zmq)
0010 set (ZeroMQ_LIBRARIES ${ZeroMQ_LIBRARY})
0011 set (ZeroMQ_INCLUDE_DIRS ${ZeroMQ_INCLUDE_DIR})
0012
0013 # Use parent directory name of the include directory to
0014 # indicate where we are getting this from. This is
0015 # informational only for when the top-level file
0016 # prints "USE_ZEROMQ On -->"
0017 # n.b. it is possible the library and include directories
0018 # don't point to the same version!
0019 get_filename_component(ZeroMQ_DIR ${ZeroMQ_INCLUDE_DIR} DIRECTORY)
0020
0021 # For debugging
0022 #message(STATUS "ZeroMQ_INCLUDE_DIR=${ZeroMQ_INCLUDE_DIR}")
0023 #message(STATUS "ZeroMQ_LIBRARY=${ZeroMQ_LIBRARY}")
0024 #message(STATUS "ZeroMQ_DIR=${ZeroMQ_DIR}")
0025
0026 # handle the QUIETLY and REQUIRED arguments and set ZeroMQ_FOUND to TRUE
0027 # if all listed variables are TRUE
0028
0029 include (FindPackageHandleStandardArgs)
0030 find_package_handle_standard_args(ZeroMQ
0031 FOUND_VAR ZeroMQ_FOUND
0032 VERSION_VAR ZeroMQ_VERSION
0033 REQUIRED_VARS ZeroMQ_DIR ZeroMQ_INCLUDE_DIRS ZeroMQ_LIBRARIES
0034 )