Skip to content

Commit

Permalink
Organize source files in CMakeLists with source_group
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtum committed Nov 25, 2024
1 parent 75e4528 commit 827ecf5
Show file tree
Hide file tree
Showing 70 changed files with 285 additions and 816 deletions.
4 changes: 4 additions & 0 deletions example/advanced/server-flex-awaitable/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(advanced-server-flex-awaitable
Jamfile
advanced_server_flex_awaitable.cpp)

source_group("" FILES
Jamfile
advanced_server_flex_awaitable.cpp)

target_include_directories(advanced-server-flex-awaitable
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/advanced/server-flex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(advanced-server-flex
Jamfile
advanced_server_flex.cpp)

source_group("" FILES
Jamfile
advanced_server_flex.cpp)

target_include_directories(advanced-server-flex
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/advanced/server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(advanced-server
Jamfile
advanced_server.cpp)

source_group("" FILES
Jamfile
advanced_server.cpp)

target_link_libraries(advanced-server PRIVATE Boost::beast)

set_target_properties(advanced-server PROPERTIES FOLDER "example-advanced-server")
4 changes: 4 additions & 0 deletions example/echo-op/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(echo-op
Jamfile
echo_op.cpp)

source_group("" FILES
Jamfile
echo_op.cpp)

target_link_libraries(echo-op PRIVATE Boost::beast)

set_target_properties(echo-op
Expand Down
4 changes: 4 additions & 0 deletions example/http/client/async-ssl-system-executor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-client-async-ssl-system-executor
Jamfile
http_client_async_ssl_system_executor.cpp)

source_group("" FILES
Jamfile
http_client_async_ssl_system_executor.cpp)

target_include_directories(http-client-async-ssl-system-executor
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/http/client/async-ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-client-async-ssl
Jamfile
http_client_async_ssl.cpp)

source_group("" FILES
Jamfile
http_client_async_ssl.cpp)

target_include_directories(http-client-async-ssl
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/http/client/async/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-client-async
Jamfile
http_client_async.cpp)

source_group("" FILES
Jamfile
http_client_async.cpp)

target_link_libraries(http-client-async PRIVATE Boost::beast)

set_target_properties(http-client-async
Expand Down
4 changes: 4 additions & 0 deletions example/http/client/awaitable-ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-client-awaitable-ssl
Jamfile
http_client_awaitable_ssl.cpp)

source_group("" FILES
Jamfile
http_client_awaitable_ssl.cpp)

target_include_directories(http-client-awaitable-ssl
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/http/client/awaitable/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-client-awaitable
Jamfile
http_client_awaitable.cpp)

source_group("" FILES
Jamfile
http_client_awaitable.cpp)

target_link_libraries(http-client-awaitable PRIVATE Boost::beast)

set_target_properties(http-client-awaitable
Expand Down
4 changes: 4 additions & 0 deletions example/http/client/body/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-client-json
Jamfile
json_client.cpp)

source_group("" FILES
Jamfile
json_client.cpp)

target_link_libraries(http-client-json PRIVATE Boost::beast Boost::json)

set_target_properties(http-client-json
Expand Down
4 changes: 4 additions & 0 deletions example/http/client/coro-ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-client-coro-ssl
Jamfile
http_client_coro_ssl.cpp)

source_group("" FILES
Jamfile
http_client_coro_ssl.cpp)

target_include_directories(http-client-coro-ssl
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/http/client/coro/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-client-coro
Jamfile
http_client_coro.cpp)

source_group("" FILES
Jamfile
http_client_coro.cpp)

target_link_libraries(http-client-coro PRIVATE Boost::beast)

set_target_properties(http-client-coro
Expand Down
5 changes: 5 additions & 0 deletions example/http/client/crawl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ add_executable(http-crawl
http_crawl.cpp
urls_large_data.cpp)

source_group("" FILES
Jamfile
http_crawl.cpp
urls_large_data.cpp)

target_link_libraries(http-crawl PRIVATE Boost::beast)

set_target_properties(http-crawl
Expand Down
4 changes: 4 additions & 0 deletions example/http/client/methods/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-client-methods
Jamfile
http_client_methods.cpp)

source_group("" FILES
Jamfile
http_client_methods.cpp)

target_link_libraries(http-client-methods PRIVATE Boost::beast)

set_target_properties(http-client-methods
Expand Down
4 changes: 4 additions & 0 deletions example/http/client/sync-ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-client-sync-ssl
Jamfile
http_client_sync_ssl.cpp)

source_group("" FILES
Jamfile
http_client_sync_ssl.cpp)

target_include_directories(http-client-sync-ssl
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/http/client/sync/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-client-sync
Jamfile
http_client_sync.cpp)

source_group("" FILES
Jamfile
http_client_sync.cpp)

target_link_libraries(http-client-sync PRIVATE Boost::beast)

set_target_properties(http-client-sync
Expand Down
4 changes: 4 additions & 0 deletions example/http/server/async-ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-server-async-ssl
Jamfile
http_server_async_ssl.cpp)

source_group("" FILES
Jamfile
http_server_async_ssl.cpp)

target_include_directories(http-server-async-ssl
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/http/server/async/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-server-async
Jamfile
http_server_async.cpp)

source_group("" FILES
Jamfile
http_server_async.cpp)

target_link_libraries(http-server-async PRIVATE Boost::beast)

set_target_properties(http-server-async
Expand Down
4 changes: 4 additions & 0 deletions example/http/server/awaitable/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-server-awaitable
Jamfile
http_server_awaitable.cpp)

source_group("" FILES
Jamfile
http_server_awaitable.cpp)

target_link_libraries(http-server-awaitable PRIVATE Boost::beast)

set_target_properties(http-server-awaitable
Expand Down
4 changes: 4 additions & 0 deletions example/http/server/coro-ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-server-coro-ssl
Jamfile
http_server_coro_ssl.cpp)

source_group("" FILES
Jamfile
http_server_coro_ssl.cpp)

target_include_directories(http-server-coro-ssl
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/http/server/coro/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-server-coro
Jamfile
http_server_coro.cpp)

source_group("" FILES
Jamfile
http_server_coro.cpp)

target_link_libraries(http-server-coro PRIVATE Boost::beast)

set_target_properties(http-server-coro
Expand Down
4 changes: 4 additions & 0 deletions example/http/server/fast/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-server-fast
Jamfile
http_server_fast.cpp)

source_group("" FILES
Jamfile
http_server_fast.cpp)

target_link_libraries(http-server-fast PRIVATE Boost::beast)

set_target_properties(http-server-fast
Expand Down
4 changes: 4 additions & 0 deletions example/http/server/flex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-server-flex
Jamfile
http_server_flex.cpp)

source_group("" FILES
Jamfile
http_server_flex.cpp)

target_include_directories(http-server-flex
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/http/server/small/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-server-small
Jamfile
http_server_small.cpp)

source_group("" FILES
Jamfile
http_server_small.cpp)

target_link_libraries(http-server-small PRIVATE Boost::beast)

set_target_properties(http-server-small
Expand Down
4 changes: 4 additions & 0 deletions example/http/server/stackless-ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-server-stackless-ssl
Jamfile
http_server_stackless_ssl.cpp)

source_group("" FILES
Jamfile
http_server_stackless_ssl.cpp)

target_include_directories(http-server-stackless-ssl
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/http/server/stackless/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-server-stackless
Jamfile
http_server_stackless.cpp)

source_group("" FILES
Jamfile
http_server_stackless.cpp)

target_link_libraries(http-server-stackless PRIVATE Boost::beast)

set_target_properties(http-server-stackless
Expand Down
4 changes: 4 additions & 0 deletions example/http/server/sync-ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-server-sync-ssl
Jamfile
http_server_sync_ssl.cpp)

source_group("" FILES
Jamfile
http_server_sync_ssl.cpp)

target_include_directories(http-server-sync-ssl
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/http/server/sync/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(http-server-sync
Jamfile
http_server_sync.cpp)

source_group("" FILES
Jamfile
http_server_sync.cpp)

target_link_libraries(http-server-sync PRIVATE Boost::beast)

set_target_properties(http-server-sync
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(websocket-client-async-ssl-system-executor
Jamfile
websocket_client_async_ssl_system_executor.cpp)

source_group("" FILES
Jamfile
websocket_client_async_ssl_system_executor.cpp)

target_include_directories(websocket-client-async-ssl-system-executor
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/websocket/client/async-ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(websocket-client-async-ssl
Jamfile
websocket_client_async_ssl.cpp)

source_group("" FILES
Jamfile
websocket_client_async_ssl.cpp)

target_include_directories(websocket-client-async-ssl
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/websocket/client/async/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(websocket-client-async
Jamfile
websocket_client_async.cpp)

source_group("" FILES
Jamfile
websocket_client_async.cpp)

target_link_libraries(websocket-client-async PRIVATE Boost::beast)

set_target_properties(websocket-client-async
Expand Down
4 changes: 4 additions & 0 deletions example/websocket/client/awaitable/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(websocket-client-awaitable
Jamfile
websocket_client_awaitable.cpp)

source_group("" FILES
Jamfile
websocket_client_awaitable.cpp)

target_link_libraries(websocket-client-awaitable PRIVATE Boost::beast)

set_target_properties(websocket-client-awaitable
Expand Down
4 changes: 4 additions & 0 deletions example/websocket/client/coro-ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(websocket-client-coro-ssl
Jamfile
websocket_client_coro_ssl.cpp)

source_group("" FILES
Jamfile
websocket_client_coro_ssl.cpp)

target_include_directories(websocket-client-coro-ssl
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/websocket/client/coro/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(websocket-client-coro
Jamfile
websocket_client_coro.cpp)

source_group("" FILES
Jamfile
websocket_client_coro.cpp)

target_link_libraries(websocket-client-coro PRIVATE Boost::beast)

set_target_properties(websocket-client-coro
Expand Down
4 changes: 4 additions & 0 deletions example/websocket/client/sync-ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(websocket-client-sync-ssl
Jamfile
websocket_client_sync_ssl.cpp)

source_group("" FILES
Jamfile
websocket_client_sync_ssl.cpp)

target_include_directories(websocket-client-sync-ssl
PRIVATE ${PROJECT_SOURCE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions example/websocket/client/sync/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ add_executable(websocket-client-sync
Jamfile
websocket_client_sync.cpp)

source_group("" FILES
Jamfile
websocket_client_sync.cpp)

target_link_libraries(websocket-client-sync PRIVATE Boost::beast)

set_target_properties(websocket-client-sync
Expand Down
Loading

0 comments on commit 827ecf5

Please sign in to comment.