blob: e61b65281ece7a1faa2e79c0c4dfa00ed2f49210 (
plain)
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
include(FeatureSummary)
set_property(GLOBAL PROPERTY FeatureSummary_PKG_TYPES TYPE1 TYPE2 TYPE3)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
find_package(Foo)
find_package(Bar)
find_package(Baz)
set_package_properties(Foo PROPERTIES TYPE TYPE1)
set_package_properties(Bar PROPERTIES TYPE TYPE2)
set_package_properties(Baz PROPERTIES TYPE TYPE3)
feature_summary(WHAT ALL)
feature_summary(WHAT TYPE1_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY)
feature_summary(WHAT TYPE1_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY)
feature_summary(WHAT TYPE2_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY)
feature_summary(WHAT TYPE2_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY)
feature_summary(WHAT TYPE3_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY)
feature_summary(WHAT TYPE3_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY)
feature_summary(WHAT TYPE1_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DESCRIPTION "TYPE1 pkgs found\n")
feature_summary(WHAT TYPE1_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DESCRIPTION "TYPE1 pkgs not found\n")
feature_summary(WHAT TYPE2_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DESCRIPTION "TYPE2 pkgs found\n")
feature_summary(WHAT TYPE2_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DESCRIPTION "TYPE2 pkgs not found\n")
feature_summary(WHAT TYPE3_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DESCRIPTION "TYPE3 pkgs found\n")
feature_summary(WHAT TYPE3_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DESCRIPTION "TYPE3 pkgs not found\n")
feature_summary(WHAT TYPE1_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DEFAULT_DESCRIPTION)
feature_summary(WHAT TYPE1_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DEFAULT_DESCRIPTION)
feature_summary(WHAT TYPE2_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DEFAULT_DESCRIPTION)
feature_summary(WHAT TYPE2_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DEFAULT_DESCRIPTION)
feature_summary(WHAT TYPE3_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DEFAULT_DESCRIPTION)
feature_summary(WHAT TYPE3_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DEFAULT_DESCRIPTION)
set_property(GLOBAL PROPERTY FeatureSummary_TYPE1_DESCRIPTION "first type packages")
set_property(GLOBAL PROPERTY FeatureSummary_TYPE2_DESCRIPTION "second type packages")
set_property(GLOBAL PROPERTY FeatureSummary_TYPE3_DESCRIPTION "third type packages")
feature_summary(WHAT ALL)
feature_summary(WHAT TYPE1_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY)
feature_summary(WHAT TYPE1_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY)
feature_summary(WHAT TYPE2_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY)
feature_summary(WHAT TYPE2_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY)
feature_summary(WHAT TYPE3_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY)
feature_summary(WHAT TYPE3_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY)
feature_summary(WHAT TYPE1_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DESCRIPTION "TYPE1 pkgs found\n")
feature_summary(WHAT TYPE1_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DESCRIPTION "TYPE1 pkgs not found\n")
feature_summary(WHAT TYPE2_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DESCRIPTION "TYPE2 pkgs found\n")
feature_summary(WHAT TYPE2_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DESCRIPTION "TYPE2 pkgs not found\n")
feature_summary(WHAT TYPE3_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DESCRIPTION "TYPE3 pkgs found\n")
feature_summary(WHAT TYPE3_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DESCRIPTION "TYPE3 pkgs not found\n")
feature_summary(WHAT TYPE1_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DEFAULT_DESCRIPTION)
feature_summary(WHAT TYPE1_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DEFAULT_DESCRIPTION)
feature_summary(WHAT TYPE2_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DEFAULT_DESCRIPTION)
feature_summary(WHAT TYPE2_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DEFAULT_DESCRIPTION)
feature_summary(WHAT TYPE3_PACKAGES_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DEFAULT_DESCRIPTION)
feature_summary(WHAT TYPE3_PACKAGES_NOT_FOUND
INCLUDE_QUIET_PACKAGES
QUIET_ON_EMPTY
DEFAULT_DESCRIPTION)
|