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