File tree Expand file tree Collapse file tree 11 files changed +80
-27
lines changed Expand file tree Collapse file tree 11 files changed +80
-27
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,34 @@ add_versioned_package("gh:intel/cpp-baremetal-concurrency#7c5b26c")
28
28
add_versioned_package("gh:intel/cpp-std-extensions#2512bcf" )
29
29
add_versioned_package("gh:intel/cpp-baremetal-senders-and-receivers#73d95bc" )
30
30
31
+ add_library (cib_sc INTERFACE )
32
+ target_compile_features (cib_sc INTERFACE cxx_std_20)
33
+ target_link_libraries_system(cib_sc INTERFACE fmt::fmt-header-only stdx)
34
+
35
+ target_sources (
36
+ cib_sc
37
+ INTERFACE FILE_SET
38
+ sc
39
+ TYPE
40
+ HEADERS
41
+ BASE_DIRS
42
+ include
43
+ FILES
44
+ include /sc/format.hpp
45
+ include /sc/fwd.hpp
46
+ include /sc/lazy_string_format.hpp
47
+ include /sc/string_constant.hpp)
48
+
31
49
add_library (cib INTERFACE )
32
50
target_compile_features (cib INTERFACE cxx_std_20)
33
- target_link_libraries_system(cib INTERFACE async concurrency
34
- fmt::fmt-header-only stdx)
51
+ target_link_libraries_system(
52
+ cib
53
+ INTERFACE
54
+ async
55
+ cib_sc
56
+ concurrency
57
+ fmt::fmt-header-only
58
+ stdx)
35
59
36
60
target_sources (
37
61
cib
@@ -179,20 +203,6 @@ target_sources(
179
203
include /msg/send.hpp
180
204
include /msg/service.hpp)
181
205
182
- target_sources (
183
- cib
184
- INTERFACE FILE_SET
185
- sc
186
- TYPE
187
- HEADERS
188
- BASE_DIRS
189
- include
190
- FILES
191
- include /sc/format.hpp
192
- include /sc/fwd.hpp
193
- include /sc/lazy_string_format.hpp
194
- include /sc/string_constant.hpp)
195
-
196
206
target_sources (
197
207
cib
198
208
INTERFACE FILE_SET
Original file line number Diff line number Diff line change 1
1
function (add_tests)
2
+ set (multiValueArgs FILES LIBRARIES)
3
+ cmake_parse_arguments (AT "" "" "${multiValueArgs} " ${ARGN} )
4
+
2
5
get_filename_component (prefix ${CMAKE_CURRENT_SOURCE_DIR} NAME )
3
- foreach (name ${ARGN } )
6
+ foreach (name ${AT_FILES } )
4
7
string (REPLACE "/" "_" test ${name} )
5
8
add_unit_test(
6
9
"${prefix} _${test} _test"
@@ -9,7 +12,7 @@ function(add_tests)
9
12
"${name} .cpp"
10
13
LIBRARIES
11
14
warnings
12
- cib )
15
+ ${AT_LIBRARIES} )
13
16
endforeach ()
14
17
endfunction ()
15
18
Original file line number Diff line number Diff line change 1
- add_tests(builder_meta callback nexus readme_hello_world)
1
+ add_tests(
2
+ FILES
3
+ builder_meta
4
+ callback
5
+ nexus
6
+ readme_hello_world
7
+ LIBRARIES
8
+ cib)
Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ add_unit_test(
8
8
warnings
9
9
cib)
10
10
11
- add_tests(flow graph graph_builder logging log_levels custom_log_levels)
11
+ add_tests(
12
+ FILES
13
+ flow
14
+ graph
15
+ graph_builder
16
+ logging
17
+ log_levels
18
+ custom_log_levels
19
+ LIBRARIES
20
+ cib)
12
21
13
22
add_subdirectory (fail)
Original file line number Diff line number Diff line change 1
1
add_tests(
2
+ FILES
2
3
dynamic_controller
3
4
irq_impl
4
5
manager
5
6
shared_irq_impl
6
7
shared_sub_irq_impl
7
8
sub_irq_impl
8
- policies)
9
+ policies
10
+ LIBRARIES
11
+ cib)
Original file line number Diff line number Diff line change 1
- add_tests(fmt_logger log mipi_encoder mipi_logger module_id)
1
+ add_tests(
2
+ FILES
3
+ fmt_logger
4
+ log
5
+ mipi_encoder
6
+ mipi_logger
7
+ module_id
8
+ LIBRARIES
9
+ cib)
2
10
3
11
add_library (catalog1_lib STATIC catalog1_lib.cpp)
4
12
add_library (catalog2_lib OBJECT catalog2a_lib.cpp catalog2b_lib.cpp)
Original file line number Diff line number Diff line change 1
- add_tests(input linear_search pseudo_pext_lookup lookup)
1
+ add_tests(
2
+ FILES
3
+ input
4
+ linear_search
5
+ pseudo_pext_lookup
6
+ lookup
7
+ LIBRARIES
8
+ cib)
2
9
3
10
add_versioned_package("gh:boost-ext/mph#v1.0.8" )
4
11
add_versioned_package("gh:serge-sans-paille/frozen#292a811" )
Original file line number Diff line number Diff line change 1
1
add_tests(
2
+ FILES
2
3
and
3
4
constant
4
5
equivalence
@@ -10,4 +11,6 @@ add_tests(
10
11
simplify_custom
11
12
simplify_not
12
13
simplify_or
13
- sum_of_products)
14
+ sum_of_products
15
+ LIBRARIES
16
+ cib)
Original file line number Diff line number Diff line change 1
1
add_tests(
2
+ FILES
2
3
callback
3
4
field_extract
4
5
field_insert
@@ -9,7 +10,9 @@ add_tests(
9
10
indexed_callback
10
11
indexed_handler
11
12
message
12
- send)
13
+ send
14
+ LIBRARIES
15
+ cib)
13
16
14
17
add_subdirectory (fail)
15
18
Original file line number Diff line number Diff line change 1
- add_tests(format string_constant)
1
+ add_tests(FILES format string_constant LIBRARIES cib_sc )
You can’t perform that action at this time.
0 commit comments