mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 08:09:08 +08:00
710677da49
* add port asiochan * simplify deploy * simplify deploy Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * update git-tree * simplify deploy Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * update git-tree * change version to version-date * update git-tree --------- Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
13 lines
555 B
Plaintext
13 lines
555 B
Plaintext
asiochan is header-only and can be used from CMake via:
|
|
|
|
find_path(ASIOCHAN_INCLUDE_DIRS "asiochan/asiochan.hpp")
|
|
target_include_directories(main PRIVATE ${ASIOCHAN_INCLUDE_DIRS})
|
|
|
|
By default asiochan depend on boost/asio. If you need use standalone asio instead, please define micro ASIOCHAN_USE_STANDALONE_ASIO.
|
|
For example:
|
|
|
|
find_path(ASIOCHAN_INCLUDE_DIRS "asiochan/asiochan.hpp")
|
|
target_compile_definitions(main PRIVATE ASIOCHAN_USE_STANDALONE_ASIO)
|
|
target_include_directories(main PRIVATE ${ASIOCHAN_INCLUDE_DIRS})
|
|
|