You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
include(functions/FetchContent_MakeAvailableExcludeFromAll)
|
|
|
|
|
|
|
|
|
|
include(FetchContent)
|
|
|
|
|
FetchContent_Declare(asio
|
|
|
|
|
URL https://github.com/diasurgical/asio/archive/4bcf552fcea3e1ae555dde2ab33bc9fa6770da4d.tar.gz
|
|
|
|
|
URL_HASH MD5=7ffee993fc21b1115abf485958d03ac8
|
|
|
|
|
)
|
|
|
|
|
FetchContent_MakeAvailableExcludeFromAll(asio)
|
|
|
|
|
|
|
|
|
|
add_library(asio STATIC ${CMAKE_CURRENT_LIST_DIR}/asio_handle_exception.cpp)
|
|
|
|
|
target_compile_definitions(asio PUBLIC ASIO_NO_EXCEPTIONS)
|
|
|
|
|
target_include_directories(asio PUBLIC ${asio_SOURCE_DIR}/asio/include ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
|
|
|
|
|
|
if(NINTENDO_3DS OR NINTENDO_SWITCH)
|
|
|
|
|
include(asio_defs REQUIRED)
|
|
|
|
|
endif()
|