The package etcd-cpp-apiv3 is compatible with built-in CMake targets: find_package(etcd-cpp-api CONFIG REQUIRED) target_link_libraries(main PRIVATE etcd-cpp-api) In cases where you only need the synchronous runtime and want to avoid the initialization of builtin thread pool, use: find_package(etcd-cpp-api CONFIG REQUIRED) target_link_libraries(main PRIVATE etcd-cpp-api-core)