]> git.proxmox.com Git - ceph.git/blame - ceph/src/Beast/examples/CMakeLists.txt
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / Beast / examples / CMakeLists.txt
CommitLineData
7c673cae
FG
1# Part of Beast
2
3GroupSources(extras/beast extras)
4GroupSources(include/beast beast)
5
6GroupSources(examples "/")
7
8add_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
16if (NOT WIN32)
17 target_link_libraries(http-crawl ${Boost_LIBRARIES} Threads::Threads)
18else()
19 target_link_libraries(http-crawl ${Boost_LIBRARIES})
20endif()
21
22add_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
32if (NOT WIN32)
33 target_link_libraries(http-server ${Boost_LIBRARIES} Threads::Threads)
34else()
35 target_link_libraries(http-server ${Boost_LIBRARIES})
36endif()
37
38
39add_executable (http-example
40 ${BEAST_INCLUDES}
41 ${EXTRAS_INCLUDES}
42 http_example.cpp
43)
44
45if (NOT WIN32)
46 target_link_libraries(http-example ${Boost_LIBRARIES} Threads::Threads)
47else()
48 target_link_libraries(http-example ${Boost_LIBRARIES})
49endif()
50
51
52add_executable (websocket-echo
53 ${BEAST_INCLUDES}
54 websocket_async_echo_server.hpp
55 websocket_sync_echo_server.hpp
56 websocket_echo.cpp
57)
58
59if (NOT WIN32)
60 target_link_libraries(websocket-echo ${Boost_LIBRARIES} Threads::Threads)
61else()
62 target_link_libraries(websocket-echo ${Boost_LIBRARIES})
63endif()
64
65
66add_executable (websocket-example
67 ${BEAST_INCLUDES}
68 ${EXTRAS_INCLUDES}
69 websocket_example.cpp
70)
71
72if (NOT WIN32)
73 target_link_libraries(websocket-example ${Boost_LIBRARIES} Threads::Threads)
74else()
75 target_link_libraries(websocket-example ${Boost_LIBRARIES})
76endif()