cppzmqConfig.cmake.in 957 B

123456789101112131415161718192021222324252627282930313233343536
  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. @PACKAGE_INIT@
  17. include(CMakeFindDependencyMacro)
  18. find_package(ZeroMQ QUIET)
  19. # libzmq autotools install: fallback to pkg-config
  20. if(NOT ZeroMQ_FOUND)
  21. list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/libzmq-pkg-config)
  22. find_package(ZeroMQ REQUIRED)
  23. endif()
  24. if(NOT ZeroMQ_FOUND)
  25. message(FATAL_ERROR "ZeroMQ was NOT found!")
  26. endif()
  27. if(NOT TARGET @PROJECT_NAME@)
  28. include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
  29. get_target_property(@PROJECT_NAME@_INCLUDE_DIR cppzmq INTERFACE_INCLUDE_DIRECTORIES)
  30. endif()