forked from rsocket/rsocket-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
695 lines (589 loc) · 19.3 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
cmake_minimum_required(VERSION 3.2)
project(ReactiveSocket)
# Cmake modules.
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/")
# Generate compilation database for use by YouCompleteMe.
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
# make sure to bail on in-source builds for cleanliness
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FATAL_ERROR "In-source builds not allowed. Please make a new directory (called a build directory)"
"and run CMake from there. You may need to remove CMakeCache.txt.")
endif()
# default built type is Release
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build" FORCE)
endif(NOT CMAKE_BUILD_TYPE)
# default is to use ReactiveStreams location from github directly
if(NOT REACTIVE_STREAMS_GIT_URL)
set(REACTIVE_STREAMS_GIT_URL "https://github.com/ReactiveSocket/reactive-streams-cpp.git" CACHE STRING "Location of the ReactiveStreams C++ git repo" FORCE)
endif(NOT REACTIVE_STREAMS_GIT_URL)
option(BUILD_BENCHMARKS "Build benchmarks" OFF)
enable_testing()
# Add a OSS macro. This is mainly to get gflags working with travis.
add_definitions(-DOSS)
include(ExternalProject)
include(CTest)
# gmock
ExternalProject_Add(
gmock
URL ${CMAKE_CURRENT_SOURCE_DIR}/googletest-release-1.8.0.zip
INSTALL_COMMAND ""
)
ExternalProject_Get_Property(gmock source_dir)
set(GMOCK_SOURCE_DIR ${source_dir})
ExternalProject_Get_Property(gmock binary_dir)
set(GMOCK_BINARY_DIR ${binary_dir})
set(GMOCK_LIBS
${GMOCK_BINARY_DIR}/${CMAKE_CFG_INTDIR}/googlemock/${CMAKE_STATIC_LIBRARY_PREFIX}gmock${CMAKE_STATIC_LIBRARY_SUFFIX}
${GMOCK_BINARY_DIR}/${CMAKE_CFG_INTDIR}/googlemock/${CMAKE_STATIC_LIBRARY_PREFIX}gmock_main${CMAKE_STATIC_LIBRARY_SUFFIX}
)
# ReactiveStreams C++
ExternalProject_Add(
ReactiveStreams
GIT_REPOSITORY ${REACTIVE_STREAMS_GIT_URL}
GIT_TAG d2fd61252b51a57a2916ee52fcd54b7f5d563591
CMAKE_ARGS "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/reactivestreams"
)
find_package(Threads)
if(APPLE)
set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl")
endif()
if(NOT META_CXX_STD)
# Defaults to C++14 if not set:
set(META_CXX_STD 14)
endif()
# Common configuration for all build modes.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++${META_CXX_STD} -pedantic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter -Woverloaded-virtual")
set(EXTRA_CXX_FLAGS ${EXTRA_CXX_FLAGS} -Werror)
string(TOLOWER "${CMAKE_BUILD_TYPE}" BUILD_TYPE_LOWER)
if("${BUILD_TYPE_LOWER}" MATCHES "debug")
message("debug mode was set")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unreachable-code")
else()
message("release mode was set")
endif()
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
set(TEST_CXX_FLAGS ${TEST_CXX_FLAGS} -Wno-inconsistent-missing-override)
endif()
find_library(DOUBLE-CONVERSION double-conversion)
find_package(Folly REQUIRED)
find_package(OpenSSL REQUIRED)
# Find glog and gflags libraries specifically
find_path(GLOG_INCLUDE_DIR glog/logging.h)
find_path(GFLAGS_INCLUDE_DIR gflags/gflags.h)
find_library(GLOG_LIBRARY glog)
find_library(GFLAGS_LIBRARY gflags)
message("gflags include_dir <${GFLAGS_INCLUDE_DIR}> lib <${GFLAGS_LIBRARY}>")
message("glog include_dir <${GLOG_INCLUDE_DIR}> lib <${GLOG_LIBRARY}>")
include_directories(SYSTEM ${FOLLY_INCLUDE_DIR})
include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR})
include_directories(SYSTEM ${GFLAGS_INCLUDE_DIR})
include_directories(SYSTEM ${GLOG_INCLUDE_DIR})
include_directories(${CMAKE_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR}/reactivestreams/include)
include_directories(${GMOCK_SOURCE_DIR}/googlemock/include)
include_directories(${GMOCK_SOURCE_DIR}/googletest/include)
add_subdirectory(experimental/yarpl)
add_library(
ReactiveSocket
src/automata/ChannelRequester.cpp
src/automata/ChannelRequester.h
src/automata/ChannelResponder.cpp
src/automata/ChannelResponder.h
src/automata/ConsumerBase.cpp
src/automata/ConsumerBase.h
src/automata/PublisherBase.h
src/automata/RequestResponseRequester.cpp
src/automata/RequestResponseRequester.h
src/automata/RequestResponseResponder.cpp
src/automata/RequestResponseResponder.h
src/automata/StreamAutomatonBase.cpp
src/automata/StreamAutomatonBase.h
src/automata/StreamRequester.cpp
src/automata/StreamRequester.h
src/automata/StreamResponder.cpp
src/automata/StreamResponder.h
src/ClientResumeStatusCallback.h
src/Common.cpp
src/Common.h
src/ConnectionAutomaton.cpp
src/ConnectionAutomaton.h
src/ConnectionSetupPayload.cpp
src/ConnectionSetupPayload.h
src/DuplexConnection.h
src/EnableSharedFromThis.h
src/Executor.cpp
src/Executor.h
src/folly/FollyKeepaliveTimer.cpp
src/folly/FollyKeepaliveTimer.h
src/Frame.cpp
src/Frame.h
src/framed/FramedDuplexConnection.cpp
src/framed/FramedDuplexConnection.h
src/framed/FramedReader.cpp
src/framed/FramedReader.h
src/framed/FramedWriter.cpp
src/framed/FramedWriter.h
src/FrameProcessor.h
src/FrameSerializer.cpp
src/FrameSerializer.h
src/FrameTransport.cpp
src/FrameTransport.h
src/NullRequestHandler.cpp
src/NullRequestHandler.h
src/Payload.cpp
src/Payload.h
src/ReactiveStreamsCompat.h
src/RequestHandler.h
src/ResumeCache.cpp
src/ResumeCache.h
src/ServerConnectionAcceptor.cpp
src/ServerConnectionAcceptor.h
src/ReactiveSocket.cpp
src/ReactiveSocket.h
src/Stats.cpp
src/Stats.h
src/StreamsFactory.cpp
src/StreamsFactory.h
src/StreamsHandler.h
src/StreamState.cpp
src/StreamState.h
src/SubscriberBase.h
src/SubscriptionBase.h
src/tcp/TcpDuplexConnection.cpp
src/tcp/TcpDuplexConnection.h
src/versions/FrameSerializer_v0.cpp
src/versions/FrameSerializer_v0.h
src/versions/FrameSerializer_v0_1.cpp
src/versions/FrameSerializer_v0_1.h
src/versions/FrameSerializer_v1_0.cpp
src/versions/FrameSerializer_v1_0.h)
target_include_directories(ReactiveSocket PUBLIC "${PROJECT_SOURCE_DIR}/experimental")
target_include_directories(ReactiveSocket PUBLIC "${PROJECT_SOURCE_DIR}/experimental/yarpl/include")
target_include_directories(ReactiveSocket PUBLIC "${PROJECT_SOURCE_DIR}/experimental/yarpl/src")
target_link_libraries(
ReactiveSocket
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY})
add_dependencies(ReactiveSocket ReactiveStreams yarpl)
target_compile_options(
ReactiveSocket
PRIVATE ${EXTRA_CXX_FLAGS})
enable_testing()
# EXCLUDE_FROM_ALL so 'make install' doesn't attempt installation of googletest
#add_subdirectory(external/googletest EXCLUDE_FROM_ALL)
add_executable(
tests
test/ConnectionAutomatonTest.cpp
test/framed/FramedReaderTest.cpp
test/framed/FramedWriterTest.cpp
test/automata/PublisherBaseTest.cpp
test/FrameTest.cpp
test/InlineConnection.cpp
test/InlineConnection.h
test/InlineConnectionTest.cpp
test/MockKeepaliveTimer.h
test/MockRequestHandler.h
test/MockStats.h
test/ReactiveSocketConcurrencyTest.cpp
test/ReactiveSocketTest.cpp
test/SubscriberBaseTest.cpp
test/Test.cpp
test/folly/FollyKeepaliveTimerTest.cpp
test/ReactiveSocketResumabilityTest.cpp
test/AllowanceSemaphoreTest.cpp
test/ResumeIdentificationTokenTest.cpp
test/ServerConnectionAcceptorTest.cpp
test/PayloadTest.cpp
test/ResumeCacheTest.cpp
test/StreamStateTest.cpp
test/integration/ClientUtils.h
test/integration/ServerFixture.h
test/integration/ServerFixture.cpp
test/integration/WarmResumptionTest.cpp
test/streams/Mocks.h
test/FrameTransportTest.cpp)
target_link_libraries(
tests
ReactiveSocket
yarpl
${FOLLY_LIBRARIES}
${GMOCK_LIBS}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
target_compile_options(
tests
PRIVATE ${TEST_CXX_FLAGS})
add_dependencies(tests gmock ReactiveSocket)
add_test(NAME ReactiveSocketTests COMMAND tests)
add_executable(
tcpclient
test/tcp/TcpClient.cpp
test/simple/PrintSubscriber.cpp
test/simple/PrintSubscriber.h
src/ReactiveSocket.cpp
src/ReactiveSocket.h
test/simple/StatsPrinter.cpp
test/simple/StatsPrinter.h)
target_link_libraries(
tcpclient
ReactiveSocket
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GMOCK_LIBS}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
add_dependencies(tcpclient gmock)
add_executable(
tcpserver
test/tcp/TcpServer.cpp
test/simple/PrintSubscriber.cpp
test/simple/PrintSubscriber.h
test/simple/StatsPrinter.cpp
test/simple/StatsPrinter.h)
target_link_libraries(
tcpserver
ReactiveSocket
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GMOCK_LIBS}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
add_dependencies(tcpserver gmock)
add_executable(
tckclient
tck-test/client.cpp
tck-test/TestFileParser.cpp
tck-test/TestFileParser.h
tck-test/TestSubscriber.cpp
tck-test/TestSubscriber.h
tck-test/TestSuite.cpp
tck-test/TestSuite.h
tck-test/TestInterpreter.cpp
tck-test/TestInterpreter.h
tck-test/TypedCommands.h)
target_link_libraries(
tckclient
ReactiveSocket
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
add_executable(
tckserver
tck-test/server.cpp
tck-test/MarbleProcessor.cpp
tck-test/MarbleProcessor.h
test/simple/StatsPrinter.cpp
test/simple/StatsPrinter.h)
target_link_libraries(
tckserver
ReactiveSocket
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GMOCK_LIBS}
${GLOG_LIBRARY}
${DOUBLE-CONVERSION}
${CMAKE_THREAD_LIBS_INIT})
add_executable(
tcpresumeclient
test/resume/TcpResumeClient.cpp
test/simple/PrintSubscriber.cpp
test/simple/PrintSubscriber.h
src/ReactiveSocket.cpp
src/ReactiveSocket.h
test/simple/StatsPrinter.cpp
test/simple/StatsPrinter.h)
target_link_libraries(
tcpresumeclient
ReactiveSocket
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GMOCK_LIBS}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
add_dependencies(tcpresumeclient gmock)
add_executable(
tcpresumeserver
test/resume/TcpResumeServer.cpp
test/simple/PrintSubscriber.cpp
test/simple/PrintSubscriber.h
test/simple/StatsPrinter.cpp
test/simple/StatsPrinter.h)
target_link_libraries(
tcpresumeserver
ReactiveSocket
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GMOCK_LIBS}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
add_dependencies(tcpresumeserver gmock)
########################################
# RSocket Experimental
########################################
add_library(
rsocket_experimental
experimental/rsocket/RSocket.h
# TODO remove when ReactiveStreams all synced
experimental/rsocket/OldNewBridge.h
experimental/rsocket-src/RSocket.cpp
experimental/rsocket/RSocketServer.h
experimental/rsocket-src/RSocketServer.cpp
experimental/rsocket/RSocketClient.h
experimental/rsocket-src/RSocketClient.cpp
experimental/rsocket/RSocketRequester.h
experimental/rsocket-src/RSocketRequester.cpp
experimental/rsocket/RSocketErrors.h
experimental/rsocket/ConnectionAcceptor.h
experimental/rsocket/ConnectionFactory.h
experimental/rsocket/ConnectionSetupRequest.h
experimental/rsocket-src/ConnectionSetupRequest.cpp
experimental/rsocket/ConnectionResumeRequest.h
experimental/rsocket-src/ConnectionResumeRequest.cpp
experimental/rsocket/transports/TcpConnectionAcceptor.h
experimental/rsocket-src/transports/TcpConnectionAcceptor.cpp
experimental/rsocket/transports/TcpConnectionFactory.h
experimental/rsocket-src/transports/TcpConnectionFactory.cpp
experimental/rsocket/RSocketResponder.h
experimental/rsocket/RSocketConnectionHandler.h
experimental/rsocket-src/RSocketConnectionHandler.cpp
)
add_dependencies(rsocket_experimental ReactiveStreams yarpl)
# include the experimental includes for usage
target_include_directories(rsocket_experimental PUBLIC "${PROJECT_SOURCE_DIR}/experimental")
# yarpl in its current experimental paths
target_include_directories(rsocket_experimental PUBLIC "${PROJECT_SOURCE_DIR}/experimental/yarpl/include")
target_include_directories(rsocket_experimental PUBLIC "${PROJECT_SOURCE_DIR}/experimental/yarpl/src")
#include_directories(${CMAKE_CURRENT_BINARY_DIR}/experimental)
add_executable(
rsocket_tests
experimental/rsocket-test/RSocketClientServerTest.cpp
experimental/rsocket-test/handlers/HelloStreamRequestHandler.h
experimental/rsocket-test/handlers/HelloStreamRequestHandler.cpp
)
target_link_libraries(
rsocket_tests
rsocket_experimental
yarpl
ReactiveSocket
${FOLLY_LIBRARIES}
${GMOCK_LIBS}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
add_dependencies(rsocket_tests gmock rsocket_experimental)
add_test(NAME RSocketTests COMMAND rsocket_tests)
########################################
# Examples
########################################
add_library(
reactivesocket_examples_util
examples/util/ExampleSubscriber.cpp
examples/util/ExampleSubscriber.h
)
target_link_libraries(
reactivesocket_examples_util
rsocket_experimental
yarpl
ReactiveSocket
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT}
)
# request-response-hello-world
add_executable(
example_request-response-hello-world-server
examples/request-response-hello-world/RequestResponseHelloWorld_Server.cpp
)
target_link_libraries(
example_request-response-hello-world-server
ReactiveSocket
rsocket_experimental
reactivesocket_examples_util
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
add_executable(
example_request-response-hello-world-client
examples/request-response-hello-world/RequestResponseHelloWorld_Client.cpp
)
target_link_libraries(
example_request-response-hello-world-client
ReactiveSocket
rsocket_experimental
reactivesocket_examples_util
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
# fire-and-forget-hello-world
add_executable(
example_fire-and-forget-hello-world-server
examples/fire-and-forget-hello-world/FireAndForgetHelloWorld_Server.cpp
)
target_link_libraries(
example_fire-and-forget-hello-world-server
ReactiveSocket
rsocket_experimental
reactivesocket_examples_util
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
add_executable(
example_fire-and-forget-hello-world-client
examples/fire-and-forget-hello-world/FireAndForgetHelloWorld_Client.cpp
)
target_link_libraries(
example_fire-and-forget-hello-world-client
ReactiveSocket
rsocket_experimental
reactivesocket_examples_util
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
# stream-hello-world
add_executable(
example_stream-hello-world-server
examples/stream-hello-world/StreamHelloWorld_Server.cpp
)
target_link_libraries(
example_stream-hello-world-server
ReactiveSocket
rsocket_experimental
reactivesocket_examples_util
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
add_executable(
example_stream-hello-world-client
examples/stream-hello-world/StreamHelloWorld_Client.cpp
)
target_link_libraries(
example_stream-hello-world-client
ReactiveSocket
rsocket_experimental
reactivesocket_examples_util
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
# channel-hello-world
add_executable(
example_channel-hello-world-server
examples/channel-hello-world/ChannelHelloWorld_Server.cpp
)
target_link_libraries(
example_channel-hello-world-server
ReactiveSocket
rsocket_experimental
reactivesocket_examples_util
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
add_executable(
example_channel-hello-world-client
examples/channel-hello-world/ChannelHelloWorld_Client.cpp
)
target_link_libraries(
example_channel-hello-world-client
ReactiveSocket
rsocket_experimental
reactivesocket_examples_util
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
# stream-observable-to-flowable
add_executable(
example_observable-to-flowable-server
examples/stream-observable-to-flowable/StreamObservableToFlowable_Server.cpp
)
target_link_libraries(
example_observable-to-flowable-server
ReactiveSocket
rsocket_experimental
reactivesocket_examples_util
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
add_executable(
example_observable-to-flowable-client
examples/stream-observable-to-flowable/StreamObservableToFlowable_Client.cpp
)
target_link_libraries(
example_observable-to-flowable-client
ReactiveSocket
rsocket_experimental
reactivesocket_examples_util
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
# conditional-request-handling
add_executable(
example_conditional-request-handling-server
examples/conditional-request-handling/ConditionalRequestHandling_Server.cpp
examples/conditional-request-handling/TextRequestHandler.h
examples/conditional-request-handling/TextRequestHandler.cpp
examples/conditional-request-handling/JsonRequestHandler.cpp
examples/conditional-request-handling/JsonRequestHandler.h
)
target_link_libraries(
example_conditional-request-handling-server
ReactiveSocket
rsocket_experimental
reactivesocket_examples_util
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
add_executable(
example_conditional-request-handling-client
examples/conditional-request-handling/ConditionalRequestHandling_Client.cpp
)
target_link_libraries(
example_conditional-request-handling-client
ReactiveSocket
rsocket_experimental
reactivesocket_examples_util
yarpl
${FOLLY_LIBRARIES}
${GFLAGS_LIBRARY}
${GLOG_LIBRARY}
${CMAKE_THREAD_LIBS_INIT})
########################################
# End Examples
########################################
if(BUILD_BENCHMARKS)
add_subdirectory(benchmarks)
endif(BUILD_BENCHMARKS)
# EOF