File: BCToolboxConfig.cmake.in

package info (click to toggle)
bctoolbox 5.3.105-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,380 kB
  • sloc: ansic: 9,623; cpp: 5,550; sh: 26; makefile: 12
file content (86 lines) | stat: -rw-r--r-- 2,912 bytes parent folder | download
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
78
79
80
81
82
83
84
85
86
############################################################################
# BCToolboxConfig.cmake
# Copyright (C) 2010-2023 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
#
############################################################################
#
# Config file for the bctoolbox package.
#
# Components
# ^^^^^^^^^^
#
# This config file will define the component: tester.
#
#
# Targets
# ^^^^^^^
#
# The following targets are always defined:
#  bctoolbox - The bctoolbox library target
#
# The following targets may be defined according to the asked components:
#  bctoolbox-tester - The bctoolbox-tester library target (defined if the tester is asked for)
#
#
# Result variables
# ^^^^^^^^^^^^^^^^
#
# This config file will set the following variables in your project:
#
#  BCToolbox_FOUND - The bctoolbox library has been found
#  BCToolbox_TARGET - The name of the CMake target for the bctoolbox library
#  BCToolbox_CMAKE_DIR - The bctoolbox CMake directory
#  BCToolbox_CMAKE_UTILS - The path to the bctoolbox CMake utils script
#  BCToolbox_tester_FOUND - The bctoolbox-tester library has been found
#  BCToolbox_tester_TARGET - The name of the CMake target for the bctoolbox-tester library

@PACKAGE_INIT@

include(CMakeFindDependencyMacro)
include("${CMAKE_CURRENT_LIST_DIR}/BCToolboxTargets.cmake")

set(BCToolbox_TARGET bctoolbox)

if(@ENABLE_TESTS_COMPONENT@)
	set(BCToolbox_tester_FOUND TRUE)
	set(BCToolbox_tester_TARGET bctoolbox-tester)
endif()

# We must propagate the public dependencies and the private dependencies for static build
include(CMakeFindDependencyMacro)
if(@BUILD_SHARED_LIBS@)
else()
	list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
	if(@Iconv_FOUND@)
		find_dependency(Iconv)
	endif()
	if(@MbedTLS_FOUND@)
		find_dependency(MbedTLS)
	endif()
	if(@Decaf_FOUND@)
		find_dependency(Decaf)
	endif()
	find_dependency(BCUnit)
endif()

set_and_check(BCToolbox_CMAKE_DIR "@PACKAGE_CMAKE_MODULES_INSTALL_DIR@")
set_and_check(BCToolbox_CMAKE_UTILS "@PACKAGE_CMAKE_MODULES_INSTALL_DIR@/BCToolboxCMakeUtils.cmake")
include("${BCToolbox_CMAKE_UTILS}")

check_required_components(BCToolbox)