Skip to content

Commit 22aa497

Browse files
committed
🎨 Split lookup into a separate library
1 parent cba5f7a commit 22aa497

File tree

2 files changed

+25
-20
lines changed

2 files changed

+25
-20
lines changed

CMakeLists.txt

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,36 @@ target_sources(
9595
include/interrupt/manager.hpp
9696
include/interrupt/policies.hpp)
9797

98+
add_library(cib_lookup INTERFACE)
99+
target_compile_features(cib_lookup INTERFACE cxx_std_20)
100+
target_link_libraries_system(cib_lookup INTERFACE stdx)
101+
102+
target_sources(
103+
cib_lookup
104+
INTERFACE FILE_SET
105+
lookup
106+
TYPE
107+
HEADERS
108+
BASE_DIRS
109+
include
110+
FILES
111+
include/lookup/detail/select.hpp
112+
include/lookup/entry.hpp
113+
include/lookup/input.hpp
114+
include/lookup/linear_search_lookup.hpp
115+
include/lookup/lookup.hpp
116+
include/lookup/pseudo_pext_lookup.hpp
117+
include/lookup/strategies.hpp
118+
include/lookup/strategy_failed.hpp)
119+
98120
add_library(cib INTERFACE)
99121
target_compile_features(cib INTERFACE cxx_std_20)
100122
target_link_libraries_system(
101123
cib
102124
INTERFACE
103125
async
104126
cib_interrupt
127+
cib_lookup
105128
cib_match
106129
cib_sc
107130
concurrency
@@ -170,24 +193,6 @@ target_sources(
170193
include/log/level.hpp
171194
include/log/log.hpp)
172195

173-
target_sources(
174-
cib
175-
INTERFACE FILE_SET
176-
lookup
177-
TYPE
178-
HEADERS
179-
BASE_DIRS
180-
include
181-
FILES
182-
include/lookup/detail/select.hpp
183-
include/lookup/entry.hpp
184-
include/lookup/input.hpp
185-
include/lookup/linear_search_lookup.hpp
186-
include/lookup/lookup.hpp
187-
include/lookup/pseudo_pext_lookup.hpp
188-
include/lookup/strategies.hpp
189-
include/lookup/strategy_failed.hpp)
190-
191196
target_sources(
192197
cib
193198
INTERFACE FILE_SET

test/lookup/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ add_tests(
55
pseudo_pext_lookup
66
lookup
77
LIBRARIES
8-
cib)
8+
cib_lookup)
99

1010
add_versioned_package("gh:boost-ext/mph#v1.0.8")
1111
add_versioned_package("gh:serge-sans-paille/frozen#292a811")
@@ -78,7 +78,7 @@ foreach(BENCH_ALG_NAME ${BENCH_ALG_NAMES})
7878
FILES
7979
pseudo_pext.cpp
8080
SYSTEM_LIBRARIES
81-
cib
81+
cib_lookup
8282
mph
8383
frozen-headers)
8484
target_compile_features(${name} PRIVATE cxx_std_23)

0 commit comments

Comments
 (0)