1# cppzmq cmake module 2# 3# The following import targets are created 4# 5# :: 6# 7# cppzmq-static 8# cppzmq 9# 10# This module sets the following variables in your project:: 11# 12# cppzmq_FOUND - true if cppzmq found on the system 13# cppzmq_INCLUDE_DIR - the directory containing cppzmq headers 14# cppzmq_LIBRARY - the ZeroMQ library for dynamic linking 15# cppzmq_STATIC_LIBRARY - the ZeroMQ library for static linking 16 17@PACKAGE_INIT@ 18 19include(CMakeFindDependencyMacro) 20find_package(ZeroMQ QUIET) 21 22# libzmq autotools install: fallback to pkg-config 23if(NOT ZeroMQ_FOUND) 24 list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/libzmq-pkg-config) 25 find_package(ZeroMQ REQUIRED) 26endif() 27 28if(NOT ZeroMQ_FOUND) 29 message(FATAL_ERROR "ZeroMQ was NOT found!") 30endif() 31 32if(NOT TARGET @PROJECT_NAME@) 33 include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") 34 get_target_property(@PROJECT_NAME@_INCLUDE_DIR cppzmq INTERFACE_INCLUDE_DIRECTORIES) 35endif() 36 37