Add pkgconfig searching for libzmq

This commit is contained in:
Nick Foster 2013-10-02 21:06:51 -04:00
parent e47992d800
commit aa5fdd17ea

View File

@ -12,6 +12,10 @@
# Search for the zeromq framework on Apple.
#CMAKE_FIND_FRAMEWORKS(ZeroMQ)
find_package(PkgConfig)
pkg_check_modules(PC_LIBZMQ libzmq)
IF(WIN32)
FIND_LIBRARY(ZEROMQ_DEBUG_LIBRARY
NAMES libzmq_d zmq_d
@ -22,6 +26,7 @@ ENDIF(WIN32)
FIND_LIBRARY(ZEROMQ_LIBRARY
NAMES libzmq zmq
HINTS ${PC_LIBZMQ_LIBDIR} ${PC_LIBZMQ_LIBRARY_DIRS}
PATHS
${ZEROMQ_LIBRARIES}
${NSCP_LIBRARYDIR}
@ -41,6 +46,8 @@ FIND_PATH(ZEROMQ_INCLUDE_DIR
${ZEROMQ_INCLUDE_DIRS}
${NSCP_INCLUDEDIR}
${ZEROMQ_INCLUDE_DIR}
${PC_LIBZMQ_INCLUDEDIR}
${PC_LIBZMQ_INCLUDE_DIRS}
)
MARK_AS_ADVANCED(