Skip to content

Commit 11e1410

Browse files
committed
👷 Use target_sources for CIB FILE_SETs
1 parent 8bcedee commit 11e1410

File tree

1 file changed

+172
-1
lines changed

1 file changed

+172
-1
lines changed

CMakeLists.txt

Lines changed: 172 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,181 @@ add_versioned_package("gh:intel/cpp-baremetal-senders-and-receivers#113eeff")
3030

3131
add_library(cib INTERFACE)
3232
target_compile_features(cib INTERFACE cxx_std_20)
33-
target_include_directories(cib INTERFACE include)
3433
target_link_libraries_system(cib INTERFACE async concurrency
3534
fmt::fmt-header-only stdx)
3635

36+
target_sources(
37+
cib
38+
INTERFACE FILE_SET
39+
cib
40+
TYPE
41+
HEADERS
42+
BASE_DIRS
43+
include
44+
FILES
45+
include/cib/builder_meta.hpp
46+
include/cib/built.hpp
47+
include/cib/callback.hpp
48+
include/cib/cib.hpp
49+
include/cib/config.hpp
50+
include/cib/detail/components.hpp
51+
include/cib/detail/conditional.hpp
52+
include/cib/detail/config_details.hpp
53+
include/cib/detail/config_item.hpp
54+
include/cib/detail/exports.hpp
55+
include/cib/detail/extend.hpp
56+
include/cib/detail/nexus_details.hpp
57+
include/cib/func_decl.hpp
58+
include/cib/nexus.hpp
59+
include/cib/top.hpp)
60+
61+
target_sources(
62+
cib
63+
INTERFACE FILE_SET
64+
flow
65+
TYPE
66+
HEADERS
67+
BASE_DIRS
68+
include
69+
FILES
70+
include/flow/builder.hpp
71+
include/flow/common.hpp
72+
include/flow/detail/par.hpp
73+
include/flow/detail/seq.hpp
74+
include/flow/detail/walk.hpp
75+
include/flow/flow.hpp
76+
include/flow/graph_builder.hpp
77+
include/flow/graphviz_builder.hpp
78+
include/flow/impl.hpp
79+
include/flow/run.hpp
80+
include/flow/step.hpp)
81+
82+
target_sources(
83+
cib
84+
INTERFACE FILE_SET
85+
interrupt
86+
TYPE
87+
HEADERS
88+
BASE_DIRS
89+
include
90+
FILES
91+
include/interrupt/concepts.hpp
92+
include/interrupt/config.hpp
93+
include/interrupt/dynamic_controller.hpp
94+
include/interrupt/fwd.hpp
95+
include/interrupt/hal.hpp
96+
include/interrupt/impl.hpp
97+
include/interrupt/manager.hpp
98+
include/interrupt/policies.hpp)
99+
100+
target_sources(
101+
cib
102+
INTERFACE FILE_SET
103+
log
104+
TYPE
105+
HEADERS
106+
BASE_DIRS
107+
include
108+
FILES
109+
include/log/catalog/catalog.hpp
110+
include/log/catalog/mipi_encoder.hpp
111+
include/log/fmt/logger.hpp
112+
include/log/level.hpp
113+
include/log/log.hpp)
114+
115+
target_sources(
116+
cib
117+
INTERFACE FILE_SET
118+
lookup
119+
TYPE
120+
HEADERS
121+
BASE_DIRS
122+
include
123+
FILES
124+
include/lookup/detail/select.hpp
125+
include/lookup/entry.hpp
126+
include/lookup/input.hpp
127+
include/lookup/linear_search_lookup.hpp
128+
include/lookup/lookup.hpp
129+
include/lookup/pseudo_pext_lookup.hpp
130+
include/lookup/strategies.hpp
131+
include/lookup/strategy_failed.hpp)
132+
133+
target_sources(
134+
cib
135+
INTERFACE FILE_SET
136+
match
137+
TYPE
138+
HEADERS
139+
BASE_DIRS
140+
include
141+
FILES
142+
include/match/and.hpp
143+
include/match/bin_op.hpp
144+
include/match/concepts.hpp
145+
include/match/constant.hpp
146+
include/match/cost.hpp
147+
include/match/implies.hpp
148+
include/match/negate.hpp
149+
include/match/not.hpp
150+
include/match/ops.hpp
151+
include/match/or.hpp
152+
include/match/predicate.hpp
153+
include/match/simplify.hpp
154+
include/match/sum_of_products.hpp)
155+
156+
target_sources(
157+
cib
158+
INTERFACE FILE_SET
159+
msg
160+
TYPE
161+
HEADERS
162+
BASE_DIRS
163+
include
164+
FILES
165+
include/msg/callback.hpp
166+
include/msg/detail/indexed_builder_common.hpp
167+
include/msg/detail/indexed_handler_common.hpp
168+
include/msg/detail/separate_sum_terms.hpp
169+
include/msg/field.hpp
170+
include/msg/field_matchers.hpp
171+
include/msg/handler_builder.hpp
172+
include/msg/handler.hpp
173+
include/msg/handler_interface.hpp
174+
include/msg/indexed_builder.hpp
175+
include/msg/indexed_handler.hpp
176+
include/msg/indexed_service.hpp
177+
include/msg/message.hpp
178+
include/msg/send.hpp
179+
include/msg/service.hpp)
180+
181+
target_sources(
182+
cib
183+
INTERFACE FILE_SET
184+
sc
185+
TYPE
186+
HEADERS
187+
BASE_DIRS
188+
include
189+
FILES
190+
include/sc/format.hpp
191+
include/sc/fwd.hpp
192+
include/sc/lazy_string_format.hpp
193+
include/sc/string_constant.hpp)
194+
195+
target_sources(
196+
cib
197+
INTERFACE FILE_SET
198+
seq
199+
TYPE
200+
HEADERS
201+
BASE_DIRS
202+
include
203+
FILES
204+
include/seq/builder.hpp
205+
include/seq/impl.hpp
206+
include/seq/step.hpp)
207+
37208
target_compile_options(
38209
cib
39210
INTERFACE

0 commit comments

Comments
 (0)