Add pkgconfig searching for libzmq
This commit is contained in:
parent
e47992d800
commit
aa5fdd17ea
@ -12,6 +12,10 @@
|
|||||||
# Search for the zeromq framework on Apple.
|
# Search for the zeromq framework on Apple.
|
||||||
#CMAKE_FIND_FRAMEWORKS(ZeroMQ)
|
#CMAKE_FIND_FRAMEWORKS(ZeroMQ)
|
||||||
|
|
||||||
|
find_package(PkgConfig)
|
||||||
|
pkg_check_modules(PC_LIBZMQ libzmq)
|
||||||
|
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
FIND_LIBRARY(ZEROMQ_DEBUG_LIBRARY
|
FIND_LIBRARY(ZEROMQ_DEBUG_LIBRARY
|
||||||
NAMES libzmq_d zmq_d
|
NAMES libzmq_d zmq_d
|
||||||
@ -22,6 +26,7 @@ ENDIF(WIN32)
|
|||||||
|
|
||||||
FIND_LIBRARY(ZEROMQ_LIBRARY
|
FIND_LIBRARY(ZEROMQ_LIBRARY
|
||||||
NAMES libzmq zmq
|
NAMES libzmq zmq
|
||||||
|
HINTS ${PC_LIBZMQ_LIBDIR} ${PC_LIBZMQ_LIBRARY_DIRS}
|
||||||
PATHS
|
PATHS
|
||||||
${ZEROMQ_LIBRARIES}
|
${ZEROMQ_LIBRARIES}
|
||||||
${NSCP_LIBRARYDIR}
|
${NSCP_LIBRARYDIR}
|
||||||
@ -41,6 +46,8 @@ FIND_PATH(ZEROMQ_INCLUDE_DIR
|
|||||||
${ZEROMQ_INCLUDE_DIRS}
|
${ZEROMQ_INCLUDE_DIRS}
|
||||||
${NSCP_INCLUDEDIR}
|
${NSCP_INCLUDEDIR}
|
||||||
${ZEROMQ_INCLUDE_DIR}
|
${ZEROMQ_INCLUDE_DIR}
|
||||||
|
${PC_LIBZMQ_INCLUDEDIR}
|
||||||
|
${PC_LIBZMQ_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
MARK_AS_ADVANCED(
|
MARK_AS_ADVANCED(
|
||||||
|
Loading…
Reference in New Issue
Block a user