Skip to content

Commit 1573805

Browse files
committed
🎨 Split match into a separate library
1 parent 0b6450c commit 1573805

File tree

3 files changed

+30
-24
lines changed

3 files changed

+30
-24
lines changed

CMakeLists.txt

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,40 @@ target_sources(
4646
include/sc/lazy_string_format.hpp
4747
include/sc/string_constant.hpp)
4848

49+
add_library(cib_match INTERFACE)
50+
target_compile_features(cib_match INTERFACE cxx_std_20)
51+
target_link_libraries_system(cib_match INTERFACE cib_sc stdx)
52+
53+
target_sources(
54+
cib_match
55+
INTERFACE FILE_SET
56+
match
57+
TYPE
58+
HEADERS
59+
BASE_DIRS
60+
include
61+
FILES
62+
include/match/and.hpp
63+
include/match/bin_op.hpp
64+
include/match/concepts.hpp
65+
include/match/constant.hpp
66+
include/match/cost.hpp
67+
include/match/implies.hpp
68+
include/match/negate.hpp
69+
include/match/not.hpp
70+
include/match/ops.hpp
71+
include/match/or.hpp
72+
include/match/predicate.hpp
73+
include/match/simplify.hpp
74+
include/match/sum_of_products.hpp)
75+
4976
add_library(cib INTERFACE)
5077
target_compile_features(cib INTERFACE cxx_std_20)
5178
target_link_libraries_system(
5279
cib
5380
INTERFACE
5481
async
82+
cib_match
5583
cib_sc
5684
concurrency
5785
fmt::fmt-header-only
@@ -155,29 +183,6 @@ target_sources(
155183
include/lookup/strategies.hpp
156184
include/lookup/strategy_failed.hpp)
157185

158-
target_sources(
159-
cib
160-
INTERFACE FILE_SET
161-
match
162-
TYPE
163-
HEADERS
164-
BASE_DIRS
165-
include
166-
FILES
167-
include/match/and.hpp
168-
include/match/bin_op.hpp
169-
include/match/concepts.hpp
170-
include/match/constant.hpp
171-
include/match/cost.hpp
172-
include/match/implies.hpp
173-
include/match/negate.hpp
174-
include/match/not.hpp
175-
include/match/ops.hpp
176-
include/match/or.hpp
177-
include/match/predicate.hpp
178-
include/match/simplify.hpp
179-
include/match/sum_of_products.hpp)
180-
181186
target_sources(
182187
cib
183188
INTERFACE FILE_SET

include/msg/detail/separate_sum_terms.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <stdx/concepts.hpp>
99
#include <stdx/tuple.hpp>
10+
#include <stdx/tuple_algorithms.hpp>
1011
#include <stdx/type_traits.hpp>
1112

1213
#include <type_traits>

test/match/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ add_tests(
1313
simplify_or
1414
sum_of_products
1515
LIBRARIES
16-
cib)
16+
cib_match)

0 commit comments

Comments
 (0)