diff --git a/cmake/Findasio.cmake b/cmake/Findasio.cmake new file mode 100644 index 0000000000..5d7a7a6c95 --- /dev/null +++ b/cmake/Findasio.cmake @@ -0,0 +1,8 @@ +find_path(ASIO_INCLUDE_DIR asio.hpp) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(asio DEFAULT_MSG ASIO_INCLUDE_DIR) + +add_library(asio::asio INTERFACE IMPORTED) +target_include_directories(asio::asio INTERFACE "${ASIO_INCLUDE_DIR}") +target_compile_definitions(asio::asio INTERFACE "ASIO_STANDALONE")