vladimirshaleev-ipaddress is header-only and can be used from CMake via: find_package(ipaddress CONFIG REQUIRED) target_link_libraries(main PRIVATE ipaddress::ipaddress)