-
Notifications
You must be signed in to change notification settings - Fork 64
/
libatbus-config.cmake.in
77 lines (57 loc) · 2.71 KB
/
libatbus-config.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#[=======================================================================[.rst:
libatbus-config.cmake
---------------------
Find the native libatbus includes and library.
Result Variables
^^^^^^^^^^^^^^^^
This module defines the following variables:
``Libatbus_INCLUDE_DIRS``
Where to find detail/libatbus_config.h , etc.
``Libatbus_PROTOCOL_DIRS``
Where to find libatbus_protocol.proto , etc.
``Libatbus_LIBRARY_DIRS``
Where to find (lib)atbus.(a/so/lib/dll/dylib), etc.
``Libatbus_LIBRARIES``
List of libraries when using libatbus.
``Libatbus_FOUND``
True if libatbus found.
``Libatbus_VERSION``
Full version of libatbus
The following :prop_tgt:`IMPORTED` targets are also defined:
``atframework::atbus``
The libatbus library
=============================================================================
Copyright 2020 OWenT.
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
=============================================================================
(To distribute this file outside of CMake, substitute the full License text for
the above reference.)
#]=======================================================================]
set(${CMAKE_FIND_PACKAGE_NAME}_VERSION "@LIBATBUS_VERSION@")
@PACKAGE_INIT@
# ######################################################################################################################
# libatbus source dir
set(${CMAKE_FIND_PACKAGE_NAME}_SOURCE_DIR "@PROJECT_SOURCE_DIR@")
set_and_check(${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIRS "@PACKAGE_INCLUDE_INSTALL_DIR@")
set_and_check(${CMAKE_FIND_PACKAGE_NAME}_LIBRARY_DIRS "@PACKAGE_CMAKE_INSTALL_LIBDIR@")
set_and_check(${CMAKE_FIND_PACKAGE_NAME}_PROTOCOL_DIRS "@PACKAGE_INCLUDE_INSTALL_DIR@")
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_LIBATBUS_EXPORT_NAME@.cmake")
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/@PROJECT_LIBATBUS_EXPORT_NAME@.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_LIBATBUS_EXPORT_NAME@.cmake")
endif()
# Normal search.
set(${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES atframework::atbus)
# handle the QUIETLY and REQUIRED arguments and set LIBATBUS_FOUND to TRUE if all listed variables are TRUE
include("FindPackageHandleStandardArgs")
find_package_handle_standard_args(
${CMAKE_FIND_PACKAGE_NAME}
FOUND_VAR ${CMAKE_FIND_PACKAGE_NAME}_FOUND
REQUIRED_VARS ${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIRS ${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES)
if(${CMAKE_FIND_PACKAGE_NAME}_FOUND)
set(LIBATBUS_FOUND ${${CMAKE_FIND_PACKAGE_NAME}_FOUND})
endif()
# check_required_components(${CMAKE_FIND_PACKAGE_NAME})