diff --git a/deps/asio/CMakeLists.txt b/deps/asio/CMakeLists.txt index 21c02406..633897dc 100644 --- a/deps/asio/CMakeLists.txt +++ b/deps/asio/CMakeLists.txt @@ -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}) diff --git a/scripts/install-package.ps1 b/scripts/install-package.ps1 index 49a04607..66c9846e 100644 --- a/scripts/install-package.ps1 +++ b/scripts/install-package.ps1 @@ -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 diff --git a/scripts/install-package.sh b/scripts/install-package.sh index bac0d727..b12eff4e 100755 --- a/scripts/install-package.sh +++ b/scripts/install-package.sh @@ -2,4 +2,4 @@ # Install package ./deps/vcpkg/vcpkg install raylib -./deps/vcpkg/vcpkg install asio +./deps/vcpkg/vcpkg install asio boost-coroutine2