Skip to content

Instantly share code, notes, and snippets.

@narslan
Created December 22, 2024 00:53
Show Gist options
  • Save narslan/c864c95bbb63d1fb287456e9d0e29c20 to your computer and use it in GitHub Desktop.
Save narslan/c864c95bbb63d1fb287456e9d0e29c20 to your computer and use it in GitHub Desktop.

Revisions

  1. narslan created this gist Dec 22, 2024.
    9 changes: 9 additions & 0 deletions CMakeLists.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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)