Skip to content

Commit

Permalink
CICD: Add boost-coroutine2 for async
Browse files Browse the repository at this point in the history
MINOR
  • Loading branch information
Saverio976 committed Sep 24, 2023
1 parent f21c1e9 commit 3aaef5d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion deps/asio/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
cmake_minimum_required(VERSION 3.15)

find_package(asio CONFIG REQUIRED)
find_package(asio REQUIRED)
find_package(Threads REQUIRED)
find_package(Boost REQUIRED)

target_link_libraries(${PROJECT_NAME_CLIENT} PRIVATE Threads::Threads)
target_include_directories(${PROJECT_NAME_CLIENT} PRIVATE ${asio_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME_CLIENT} PRIVATE ${asio_LIBRARIES})
target_include_directories(${PROJECT_NAME_CLIENT} PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME_CLIENT} PRIVATE ${Boost_LIBRARIES})

target_link_libraries(${PROJECT_NAME_SERVER} PRIVATE Threads::Threads)
target_include_directories(${PROJECT_NAME_SERVER} PRIVATE ${asio_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME_SERVER} PRIVATE ${asio_LIBRARIES})
target_include_directories(${PROJECT_NAME_SERVER} PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME_SERVER} PRIVATE ${Boost_LIBRARIES})
2 changes: 1 addition & 1 deletion scripts/install-package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Install package

./deps/vcpkg/vcpkg.exe install raylib
./deps/vcpkg/vcpkg.exe install asio
./deps/vcpkg/vcpkg.exe install asio boost-coroutine2
2 changes: 1 addition & 1 deletion scripts/install-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Install package

./deps/vcpkg/vcpkg install raylib
./deps/vcpkg/vcpkg install asio
./deps/vcpkg/vcpkg install asio boost-coroutine2

0 comments on commit 3aaef5d

Please sign in to comment.