|
5 | 5 | # http://www.boost.org/LICENSE_1_0.txt) |
6 | 6 | #------------------------------------------------------------------------------- |
7 | 7 |
|
8 | | -if(CPPWAMP_OPT_WITH_JSON) |
9 | | - add_subdirectory(asynctimeclient) |
10 | | - add_subdirectory(asynctimeservice) |
| 8 | +add_subdirectory(asynctimeclient) |
| 9 | +add_subdirectory(asynctimeservice) |
11 | 10 |
|
12 | | - # Convenience target that groups all examples |
13 | | - add_custom_target(cppwamp_examples) |
14 | | - add_dependencies(cppwamp_examples |
15 | | - cppwamp-example-asynctimeclient |
16 | | - cppwamp-example-asynctimeservice) |
17 | | - |
18 | | - if(CPPWAMP_OPT_WITH_CORO) |
19 | | - add_subdirectory(chat) |
20 | | - add_subdirectory(timeclient) |
21 | | - add_subdirectory(timeservice) |
22 | | - add_dependencies(cppwamp_examples |
23 | | - cppwamp-example-chat |
24 | | - cppwamp-example-timeclient |
25 | | - cppwamp-example-timeservice) |
26 | | - endif() |
| 11 | +# Convenience target that groups all examples |
| 12 | +add_custom_target(cppwamp_examples) |
| 13 | +add_dependencies(cppwamp_examples |
| 14 | + cppwamp-example-asynctimeclient |
| 15 | + cppwamp-example-asynctimeservice) |
27 | 16 |
|
28 | | - # Copy Crossbar node configuration to build directory |
29 | | - configure_file( |
30 | | - ${CMAKE_CURRENT_SOURCE_DIR}/.crossbar/config.json |
31 | | - ${CMAKE_CURRENT_BINARY_DIR}/.crossbar/config.json |
32 | | - COPYONLY) |
| 17 | +if(CPPWAMP_OPT_WITH_CORO) |
| 18 | + add_subdirectory(chat) |
| 19 | + add_subdirectory(timeclient) |
| 20 | + add_subdirectory(timeservice) |
| 21 | + add_dependencies(cppwamp_examples |
| 22 | + cppwamp-example-chat |
| 23 | + cppwamp-example-timeclient |
| 24 | + cppwamp-example-timeservice) |
33 | 25 | endif() |
| 26 | + |
| 27 | +# Copy Crossbar node configuration to build directory |
| 28 | +configure_file( |
| 29 | + ${CMAKE_CURRENT_SOURCE_DIR}/.crossbar/config.json |
| 30 | + ${CMAKE_CURRENT_BINARY_DIR}/.crossbar/config.json |
| 31 | + COPYONLY) |
0 commit comments