@@ -73,92 +73,100 @@ endif()
73
73
# Executables
74
74
#=======================================================================
75
75
76
- add_executable (intro examples/intro .cpp )
77
- target_link_libraries (intro common )
78
- target_compile_features (intro PUBLIC cxx_std_20 )
79
- add_test (intro intro )
76
+ add_executable (cpp20_intro examples/cpp20_intro .cpp )
77
+ target_link_libraries (cpp20_intro common )
78
+ target_compile_features (cpp20_intro PUBLIC cxx_std_20 )
79
+ add_test (cpp20_intro cpp20_intro )
80
80
if (MSVC )
81
- target_compile_options (intro PRIVATE /bigobj )
82
- target_compile_definitions (intro PRIVATE _WIN32_WINNT=0x0601 )
81
+ target_compile_options (cpp20_intro PRIVATE /bigobj )
82
+ target_compile_definitions (cpp20_intro PRIVATE _WIN32_WINNT=0x0601 )
83
83
endif ()
84
84
85
- add_executable (intro_sync examples/intro_sync.cpp )
86
- target_compile_features (intro_sync PUBLIC cxx_std_20 )
87
- add_test (intro_sync intro_sync )
88
- add_test (intro_sync intro_sync )
85
+ add_executable (cpp17_intro examples/cpp17_intro.cpp )
86
+ target_compile_features (cpp17_intro PUBLIC cxx_std_17 )
87
+ add_test (cpp17_intro cpp17_intro )
89
88
if (MSVC )
90
- target_compile_options (intro_sync PRIVATE /bigobj )
91
- target_compile_definitions (intro_sync PRIVATE _WIN32_WINNT=0x0601 )
89
+ target_compile_options (cpp17_intro PRIVATE /bigobj )
90
+ target_compile_definitions (cpp17_intro PRIVATE _WIN32_WINNT=0x0601 )
92
91
endif ()
93
92
94
- add_executable (chat_room examples/chat_room.cpp )
95
- target_compile_features (chat_room PUBLIC cxx_std_20 )
96
- target_link_libraries (chat_room common )
93
+ add_executable (cpp17_intro_sync examples/cpp17_intro_sync.cpp )
94
+ target_compile_features (cpp17_intro_sync PUBLIC cxx_std_17 )
95
+ add_test (cpp17_intro_sync cpp17_intro_sync )
96
+ add_test (cpp17_intro_sync cpp17_intro_sync )
97
97
if (MSVC )
98
- target_compile_options (chat_room PRIVATE /bigobj )
99
- target_compile_definitions (chat_room PRIVATE _WIN32_WINNT=0x0601 )
98
+ target_compile_options (cpp17_intro_sync PRIVATE /bigobj )
99
+ target_compile_definitions (cpp17_intro_sync PRIVATE _WIN32_WINNT=0x0601 )
100
100
endif ()
101
101
102
- add_executable (containers examples/containers.cpp )
103
- target_compile_features (containers PUBLIC cxx_std_20 )
104
- target_link_libraries (containers common )
105
- add_test (containers containers )
102
+ add_executable (cpp20_chat_room examples/cpp20_chat_room.cpp )
103
+ target_compile_features (cpp20_chat_room PUBLIC cxx_std_20 )
104
+ target_link_libraries (cpp20_chat_room common )
106
105
if (MSVC )
107
- target_compile_options (containers PRIVATE /bigobj )
108
- target_compile_definitions (containers PRIVATE _WIN32_WINNT=0x0601 )
106
+ target_compile_options (cpp20_chat_room PRIVATE /bigobj )
107
+ target_compile_definitions (cpp20_chat_room PRIVATE _WIN32_WINNT=0x0601 )
109
108
endif ()
110
109
111
- add_executable (echo_server examples/echo_server.cpp )
112
- target_compile_features (echo_server PUBLIC cxx_std_20 )
113
- target_link_libraries (echo_server common )
110
+ add_executable (cpp20_containers examples/cpp20_containers.cpp )
111
+ target_compile_features (cpp20_containers PUBLIC cxx_std_20 )
112
+ target_link_libraries (cpp20_containers common )
113
+ add_test (cpp20_containers cpp20_containers )
114
114
if (MSVC )
115
- target_compile_options (echo_server PRIVATE /bigobj )
116
- target_compile_definitions (echo_server PRIVATE _WIN32_WINNT=0x0601 )
115
+ target_compile_options (cpp20_containers PRIVATE /bigobj )
116
+ target_compile_definitions (cpp20_containers PRIVATE _WIN32_WINNT=0x0601 )
117
117
endif ()
118
118
119
- add_executable (resolve_with_sentinel examples/resolve_with_sentinel.cpp )
120
- target_compile_features (resolve_with_sentinel PUBLIC cxx_std_20 )
121
- target_link_libraries (resolve_with_sentinel common )
122
- #add_test(resolve_with_sentinel resolve_with_sentinel)
119
+ add_executable (cpp20_echo_server examples/cpp20_echo_server.cpp )
120
+ target_compile_features (cpp20_echo_server PUBLIC cxx_std_20 )
121
+ target_link_libraries (cpp20_echo_server common )
123
122
if (MSVC )
124
- target_compile_options (resolve_with_sentinel PRIVATE /bigobj )
125
- target_compile_definitions (resolve_with_sentinel PRIVATE _WIN32_WINNT=0x0601 )
123
+ target_compile_options (cpp20_echo_server PRIVATE /bigobj )
124
+ target_compile_definitions (cpp20_echo_server PRIVATE _WIN32_WINNT=0x0601 )
126
125
endif ()
127
126
128
- add_executable (serialization examples/serialization .cpp )
129
- target_compile_features (serialization PUBLIC cxx_std_20 )
130
- target_link_libraries (serialization common )
131
- add_test (serialization serialization )
127
+ add_executable (cpp20_resolve_with_sentinel examples/cpp20_resolve_with_sentinel .cpp )
128
+ target_compile_features (cpp20_resolve_with_sentinel PUBLIC cxx_std_20 )
129
+ target_link_libraries (cpp20_resolve_with_sentinel common )
130
+ # add_test(cpp20_resolve_with_sentinel cpp20_resolve_with_sentinel )
132
131
if (MSVC )
133
- target_compile_options (serialization PRIVATE /bigobj )
134
- target_compile_definitions (serialization PRIVATE _WIN32_WINNT=0x0601 )
132
+ target_compile_options (cpp20_resolve_with_sentinel PRIVATE /bigobj )
133
+ target_compile_definitions (cpp20_resolve_with_sentinel PRIVATE _WIN32_WINNT=0x0601 )
135
134
endif ()
136
135
137
- add_executable (subscriber examples/subscriber.cpp )
138
- target_compile_features (subscriber PUBLIC cxx_std_20 )
139
- target_link_libraries (subscriber common )
136
+ add_executable (cpp20_serialization examples/cpp20_serialization.cpp )
137
+ target_compile_features (cpp20_serialization PUBLIC cxx_std_20 )
138
+ target_link_libraries (cpp20_serialization common )
139
+ add_test (cpp20_serialization cpp20_serialization )
140
140
if (MSVC )
141
- target_compile_options (subscriber PRIVATE /bigobj )
142
- target_compile_definitions (subscriber PRIVATE _WIN32_WINNT=0x0601 )
141
+ target_compile_options (cpp20_serialization PRIVATE /bigobj )
142
+ target_compile_definitions (cpp20_serialization PRIVATE _WIN32_WINNT=0x0601 )
143
143
endif ()
144
144
145
- add_executable (intro_tls examples/intro_tls.cpp )
146
- target_compile_features (intro_tls PUBLIC cxx_std_20 )
147
- add_test (intro_tls intro_tls )
148
- target_link_libraries (intro_tls OpenSSL::Crypto OpenSSL::SSL )
149
- target_link_libraries (intro_tls common )
145
+ add_executable (cpp20_subscriber examples/cpp20_subscriber.cpp )
146
+ target_compile_features (cpp20_subscriber PUBLIC cxx_std_20 )
147
+ target_link_libraries (cpp20_subscriber common )
150
148
if (MSVC )
151
- target_compile_options (intro_tls PRIVATE /bigobj )
152
- target_compile_definitions (intro_tls PRIVATE _WIN32_WINNT=0x0601 )
149
+ target_compile_options (cpp20_subscriber PRIVATE /bigobj )
150
+ target_compile_definitions (cpp20_subscriber PRIVATE _WIN32_WINNT=0x0601 )
153
151
endif ()
154
152
155
- add_executable (low_level_async examples/low_level_async.cpp )
156
- target_compile_features (low_level_async PUBLIC cxx_std_20 )
157
- add_test (low_level_async low_level_async )
158
- target_link_libraries (low_level_async common )
153
+ add_executable (cpp20_intro_tls examples/cpp20_intro_tls.cpp )
154
+ target_compile_features (cpp20_intro_tls PUBLIC cxx_std_20 )
155
+ add_test (cpp20_intro_tls cpp20_intro_tls )
156
+ target_link_libraries (cpp20_intro_tls OpenSSL::Crypto OpenSSL::SSL )
157
+ target_link_libraries (cpp20_intro_tls common )
159
158
if (MSVC )
160
- target_compile_options (low_level_async PRIVATE /bigobj )
161
- target_compile_definitions (low_level_async PRIVATE _WIN32_WINNT=0x0601 )
159
+ target_compile_options (cpp20_intro_tls PRIVATE /bigobj )
160
+ target_compile_definitions (cpp20_intro_tls PRIVATE _WIN32_WINNT=0x0601 )
161
+ endif ()
162
+
163
+ add_executable (cpp20_low_level_async examples/cpp20_low_level_async.cpp )
164
+ target_compile_features (cpp20_low_level_async PUBLIC cxx_std_20 )
165
+ add_test (cpp20_low_level_async cpp20_low_level_async )
166
+ target_link_libraries (cpp20_low_level_async common )
167
+ if (MSVC )
168
+ target_compile_options (cpp20_low_level_async PRIVATE /bigobj )
169
+ target_compile_definitions (cpp20_low_level_async PRIVATE _WIN32_WINNT=0x0601 )
162
170
endif ()
163
171
164
172
add_executable (echo_server_client benchmarks/cpp/asio/echo_server_client.cpp )
@@ -175,12 +183,12 @@ if (MSVC)
175
183
target_compile_definitions (echo_server_direct PRIVATE _WIN32_WINNT=0x0601 )
176
184
endif ()
177
185
178
- add_executable (low_level_sync examples/low_level_sync .cpp )
179
- target_compile_features (low_level_sync PUBLIC cxx_std_17 )
180
- add_test (low_level_sync low_level_sync )
186
+ add_executable (cpp17_low_level_sync examples/cpp17_low_level_sync .cpp )
187
+ target_compile_features (cpp17_low_level_sync PUBLIC cxx_std_17 )
188
+ add_test (cpp17_low_level_sync cpp17_low_level_sync )
181
189
if (MSVC )
182
- target_compile_options (low_level_sync PRIVATE /bigobj )
183
- target_compile_definitions (low_level_sync PRIVATE _WIN32_WINNT=0x0601 )
190
+ target_compile_options (cpp17_low_level_sync PRIVATE /bigobj )
191
+ target_compile_definitions (cpp17_low_level_sync PRIVATE _WIN32_WINNT=0x0601 )
184
192
endif ()
185
193
186
194
add_executable (test_conn_exec tests/conn_exec.cpp )
0 commit comments