Debian Codegraph @

c/src/ProtonConfig.cmake.in

raw
1 #
2 # Licensed to the Apache Software Foundation (ASF) under one
3 # or more contributor license agreements. See the NOTICE file
4 # distributed with this work for additional information
5 # regarding copyright ownership. The ASF licenses this file
6 # to you under the Apache License, Version 2.0 (the
7 # "License"); you may not use this file except in compliance
8 # with the License. You may obtain a copy of the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing,
13 # software distributed under the License is distributed on an
14 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 # KIND, either express or implied. See the License for the
16 # specific language governing permissions and limitations
17 # under the License.
18 #
19
20 # Name: Proton
21 # Description: Qpid Proton C library
22 # Version: @PN_VERSION@
23 # URL: http://qpid.apache.org/proton/
24
25 @PACKAGE_INIT@
26 if (NOT Proton_USE_STATIC_LIBS)
27 include("${CMAKE_CURRENT_LIST_DIR}/ProtonTargets.cmake")
28 else()
29 include("${CMAKE_CURRENT_LIST_DIR}/ProtonTargetsStatic.cmake")
30 endif()
31
32 set(Proton_VERSION @PN_VERSION@)
33
34 # find dependencies, because static libs don't transitively pull them
35 if (Proton_USE_STATIC_LIBS)
36 set(CMAKE_MODULE_PATH_OLD ${CMAKE_MODULE_PATH})
37 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
38
39 set(CyrusSASL_FOUND @CyrusSASL_FOUND@)
40 if (CyrusSASL_FOUND)
41 find_package (CyrusSASL REQUIRED)
42 endif()
43
44 set(OPENSSL_FOUND @OPENSSL_FOUND@)
45 set(OpenSSL_FOUND @OpenSSL_FOUND@)
46 if (OPENSSL_FOUND OR OpenSSL_FOUND)
47 find_package (OpenSSL REQUIRED)
48 endif()
49
50 find_package (Threads REQUIRED)
51
52 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH_OLD})
53 endif()
54
55 set (Proton_INCLUDE_DIRS @PACKAGE_INCLUDE_INSTALL_DIR@)
56 set (Proton_LIBRARIES Proton::qpid-proton)
57 set (Proton_FOUND True)
58
59 set (Proton_Core_INCLUDE_DIRS @PACKAGE_INCLUDE_INSTALL_DIR@)
60 set (Proton_Core_LIBRARIES Proton::core)
61 set (Proton_Core_FOUND True)
62
63 set (HAS_PROACTOR @HAS_PROACTOR@)
64 if (HAS_PROACTOR)
65 set (Proton_Proactor_INCLUDE_DIRS @PACKAGE_INCLUDE_INSTALL_DIR@)
66 set (Proton_Proactor_LIBRARIES Proton::proactor)
67 set (Proton_Proactor_FOUND True)
68 endif()
69
70 set (HAS_TLS @HAS_TLS@)
71 if (HAS_TLS)
72 set (Proton_Tls_INCLUDE_DIRS @PACKAGE_INCLUDE_INSTALL_DIR@)
73 set (Proton_Tls_LIBRARIES Proton::tls)
74 set (Proton_Tls_FOUND True)
75 endif()
76
77 check_required_components(Proton)