Debian Codegraph @

bindings/jni/czmq-jni/Findczmq.cmake

raw
1 ################################################################################
2 # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
3 # Read the zproject/README.md for information about making permanent changes. #
4 ################################################################################
5
6 if (NOT MSVC)
7 include(FindPkgConfig)
8 pkg_check_modules(PC_CZMQ "libczmq")
9 if (NOT PC_CZMQ_FOUND)
10 pkg_check_modules(PC_CZMQ "libczmq")
11 endif (NOT PC_CZMQ_FOUND)
12 if (PC_CZMQ_FOUND)
13 # some libraries install the headers is a subdirectory of the include dir
14 # returned by pkg-config, so use a wildcard match to improve chances of finding
15 # headers and SOs.
16 set(PC_CZMQ_INCLUDE_HINTS ${PC_CZMQ_INCLUDE_DIRS} ${PC_CZMQ_INCLUDE_DIRS}/*)
17 set(PC_CZMQ_LIBRARY_HINTS ${PC_CZMQ_LIBRARY_DIRS} ${PC_CZMQ_LIBRARY_DIRS}/*)
18 endif(PC_CZMQ_FOUND)
19 endif (NOT MSVC)
20
21 find_path (
22 CZMQ_INCLUDE_DIRS
23 NAMES czmq.h
24 HINTS ${PC_CZMQ_INCLUDE_HINTS}
25 )
26
27 find_library (
28 CZMQ_LIBRARIES
29 NAMES czmq
30 HINTS ${PC_CZMQ_LIBRARY_HINTS}
31 )
32
33 include(FindPackageHandleStandardArgs)
34
35 find_package_handle_standard_args(
36 CZMQ
37 REQUIRED_VARS CZMQ_LIBRARIES CZMQ_INCLUDE_DIRS
38 )
39 mark_as_advanced(
40 CZMQ_FOUND
41 CZMQ_LIBRARIES CZMQ_INCLUDE_DIRS
42 )
43
44 ################################################################################
45 # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
46 # Read the zproject/README.md for information about making permanent changes. #
47 ################################################################################