]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # Part of Beast |
2 | ||
3 | GroupSources(extras/beast extras) | |
4 | GroupSources(include/beast beast) | |
5 | ||
6 | GroupSources(examples "/") | |
7 | ||
8 | add_executable (http-crawl | |
9 | ${BEAST_INCLUDES} | |
10 | ${EXTRAS_INCLUDES} | |
11 | urls_large_data.hpp | |
12 | urls_large_data.cpp | |
13 | http_crawl.cpp | |
14 | ) | |
15 | ||
16 | if (NOT WIN32) | |
17 | target_link_libraries(http-crawl ${Boost_LIBRARIES} Threads::Threads) | |
18 | else() | |
19 | target_link_libraries(http-crawl ${Boost_LIBRARIES}) | |
20 | endif() | |
21 | ||
22 | add_executable (http-server | |
23 | ${BEAST_INCLUDES} | |
24 | ${EXTRAS_INCLUDES} | |
25 | file_body.hpp | |
26 | mime_type.hpp | |
27 | http_async_server.hpp | |
28 | http_sync_server.hpp | |
29 | http_server.cpp | |
30 | ) | |
31 | ||
32 | if (NOT WIN32) | |
33 | target_link_libraries(http-server ${Boost_LIBRARIES} Threads::Threads) | |
34 | else() | |
35 | target_link_libraries(http-server ${Boost_LIBRARIES}) | |
36 | endif() | |
37 | ||
38 | ||
39 | add_executable (http-example | |
40 | ${BEAST_INCLUDES} | |
41 | ${EXTRAS_INCLUDES} | |
42 | http_example.cpp | |
43 | ) | |
44 | ||
45 | if (NOT WIN32) | |
46 | target_link_libraries(http-example ${Boost_LIBRARIES} Threads::Threads) | |
47 | else() | |
48 | target_link_libraries(http-example ${Boost_LIBRARIES}) | |
49 | endif() | |
50 | ||
51 | ||
52 | add_executable (websocket-echo | |
53 | ${BEAST_INCLUDES} | |
54 | websocket_async_echo_server.hpp | |
55 | websocket_sync_echo_server.hpp | |
56 | websocket_echo.cpp | |
57 | ) | |
58 | ||
59 | if (NOT WIN32) | |
60 | target_link_libraries(websocket-echo ${Boost_LIBRARIES} Threads::Threads) | |
61 | else() | |
62 | target_link_libraries(websocket-echo ${Boost_LIBRARIES}) | |
63 | endif() | |
64 | ||
65 | ||
66 | add_executable (websocket-example | |
67 | ${BEAST_INCLUDES} | |
68 | ${EXTRAS_INCLUDES} | |
69 | websocket_example.cpp | |
70 | ) | |
71 | ||
72 | if (NOT WIN32) | |
73 | target_link_libraries(websocket-example ${Boost_LIBRARIES} Threads::Threads) | |
74 | else() | |
75 | target_link_libraries(websocket-example ${Boost_LIBRARIES}) | |
76 | endif() |