Created
December 22, 2024 00:53
-
-
Save narslan/c864c95bbb63d1fb287456e9d0e29c20 to your computer and use it in GitHub Desktop.
integrate asio with cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find_package(Threads REQUIRED) | |
| add_library(asio INTERFACE) | |
| target_include_directories(asio SYSTEM INTERFACE asio/include) | |
| target_compile_definitions(asio INTERFACE ASIO_STANDALONE ASIO_NO_DEPRECATED) | |
| target_link_libraries(asio INTERFACE Threads::Threads) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment