cpp-httplib provides CMake targets:
find_package(httplib CONFIG REQUIRED)
target_link_libraries(main PRIVATE httplib::httplib)