3
3
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
4
# cmake-format: on
5
5
6
- add_library(${TARGET_LIBRARY } STATIC)
7
- add_library(${TARGET_ALIAS} ALIAS ${TARGET_LIBRARY })
6
+ add_library(${TARGET_NAME } STATIC)
7
+ add_library(${TARGET_ALIAS} ALIAS ${TARGET_NAME })
8
8
9
9
if(CMAKE_BUILD_TYPE STREQUAL Debug)
10
- target_link_libraries(${TARGET_LIBRARY } PUBLIC $< BUILD_INTERFACE :${TARGET_LIBRARY }_project_options>)
11
- target_link_libraries(${TARGET_LIBRARY } PUBLIC $< BUILD_INTERFACE :${TARGET_LIBRARY }_project_warnings>)
10
+ target_link_libraries(${TARGET_NAME } PUBLIC $< BUILD_INTERFACE :${TARGET_NAME }_project_options>)
11
+ target_link_libraries(${TARGET_NAME } PUBLIC $< BUILD_INTERFACE :${TARGET_NAME }_project_warnings>)
12
12
endif()
13
13
14
14
include (CMakePrintHelpers)
15
- cmake_print_variables(TARGET_ALIAS TARGET_LIBRARY TARGET_PREFIX PROJECT_SOURCE_DIR)
15
+ cmake_print_variables(TARGET_ALIAS TARGET_NAME TARGET_PREFIX PROJECT_SOURCE_DIR)
16
16
17
17
target_sources(
18
- ${TARGET_LIBRARY }
18
+ ${TARGET_NAME }
19
19
PRIVATE execution.cpp
20
20
PUBLIC FILE_SET
21
- ${TARGET_LIBRARY }_public_headers
21
+ ${TARGET_NAME }_public_headers
22
22
TYPE
23
23
HEADERS
24
24
BASE_DIRS
@@ -28,7 +28,7 @@ target_sources(
28
28
${PROJECT_SOURCE_DIR}/include/beman/execution26/functional.hpp
29
29
${PROJECT_SOURCE_DIR}/include/beman/execution26/stop_token.hpp
30
30
PUBLIC FILE_SET
31
- ${TARGET_LIBRARY }_detail_headers
31
+ ${TARGET_NAME }_detail_headers
32
32
TYPE
33
33
HEADERS
34
34
BASE_DIRS
@@ -39,8 +39,10 @@ target_sources(
39
39
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/apply_sender.hpp
40
40
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/as_awaitable.hpp
41
41
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/as_except_ptr.hpp
42
+ ${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/atomic_intrusive_stack.hpp
42
43
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/await_result_type.hpp
43
44
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/await_suspend_result.hpp
45
+ ${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/awaitable_sender.hpp
44
46
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/basic_operation.hpp
45
47
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/basic_receiver.hpp
46
48
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/basic_sender.hpp
@@ -49,6 +51,7 @@ target_sources(
49
51
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/callable.hpp
50
52
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/check_type_alias_exist.hpp
51
53
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/child_type.hpp
54
+ ${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/class_type.hpp
52
55
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/common.hpp
53
56
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/completion_domain.hpp
54
57
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/completion_signature.hpp
@@ -64,6 +67,7 @@ target_sources(
64
67
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/continues_on.hpp
65
68
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/decayed_same_as.hpp
66
69
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/decayed_tuple.hpp
70
+ ${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/decayed_type_list.hpp
67
71
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/decayed_typeof.hpp
68
72
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/decays_to.hpp
69
73
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/default_domain.hpp
@@ -97,6 +101,7 @@ target_sources(
97
101
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/indirect_meta_apply.hpp
98
102
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/inplace_stop_source.hpp
99
103
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/into_variant.hpp
104
+ ${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/intrusive_stack.hpp
100
105
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/is_awaitable.hpp
101
106
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/is_awaiter.hpp
102
107
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/join_env.hpp
@@ -138,6 +143,7 @@ target_sources(
138
143
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender.hpp
139
144
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender_adaptor.hpp
140
145
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender_adaptor_closure.hpp
146
+ ${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender_awaitable.hpp
141
147
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender_decompose.hpp
142
148
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender_for.hpp
143
149
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender_in.hpp
@@ -149,6 +155,7 @@ target_sources(
149
155
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/simple_counting_scope.hpp
150
156
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/single_sender.hpp
151
157
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/single_sender_value_type.hpp
158
+ ${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/split.hpp
152
159
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/start.hpp
153
160
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/starts_on.hpp
154
161
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/state_type.hpp
@@ -165,6 +172,7 @@ target_sources(
165
172
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/then.hpp
166
173
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/transform_sender.hpp
167
174
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/type_list.hpp
175
+ ${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/unspecified_promise.hpp
168
176
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/unstoppable_token.hpp
169
177
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/valid_completion_for.hpp
170
178
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/valid_completion_signatures.hpp
@@ -174,32 +182,33 @@ target_sources(
174
182
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/when_all.hpp
175
183
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/when_all_with_variant.hpp
176
184
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/with_await_transform.hpp
185
+ ${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/with_awaitable_senders.hpp
177
186
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/write_env.hpp
178
187
)
179
188
180
189
# cmake-format: off
181
- get_property(DETAIL_HEADER_FILES TARGET ${TARGET_LIBRARY } PROPERTY HEADER_SET_${TARGET_LIBRARY }_detail_headers)
190
+ get_property(DETAIL_HEADER_FILES TARGET ${TARGET_NAME } PROPERTY HEADER_SET_${TARGET_NAME }_detail_headers)
182
191
source_group("Header Files\\detail" FILES ${DETAIL_HEADER_FILES})
183
192
184
- set_target_properties(${TARGET_LIBRARY } PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON)
193
+ set_target_properties(${TARGET_NAME } PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON)
185
194
186
- target_compile_features(${TARGET_LIBRARY } PUBLIC
195
+ target_compile_features(${TARGET_NAME } PUBLIC
187
196
"$<$< COMPILE_FEATURES :cxx_std_26>:cxx_std_26>"
188
197
"$<$< NOT :$< COMPILE_FEATURES:cxx_std_26>>:cxx_std_23>"
189
198
)
190
199
191
200
install(
192
- TARGETS ${TARGET_LIBRARY }
201
+ TARGETS ${TARGET_NAME }
193
202
EXPORT ${TARGETS_EXPORT_NAME}1
194
203
ARCHIVE DESTINATION lib/$<CONFIG>
195
- FILE_SET ${TARGET_LIBRARY }_public_headers
196
- FILE_SET ${TARGET_LIBRARY }_detail_headers
204
+ FILE_SET ${TARGET_NAME }_public_headers
205
+ FILE_SET ${TARGET_NAME }_detail_headers
197
206
)
198
207
# cmake-format: on
199
208
200
209
install(
201
210
EXPORT ${TARGETS_EXPORT_NAME}1
202
211
FILE ${TARGETS_EXPORT_NAME}.cmake
203
212
DESTINATION "${INSTALL_CONFIGDIR}"
204
- NAMESPACE ${TARGET_LIBRARY } ::
213
+ NAMESPACE ${TARGET_NAMESPACE } ::
205
214
)
0 commit comments