The package asiosdk provides CMake integration: find_package(asiosdk REQUIRED) target_include_directories( PRIVATE ${ASIOSDK_INCLUDE_DIRS})