cmake_minimum_required(VERSION 3.10) project(my_tdriver) # Abseil is ok with either C++14 or C++17 or C++20 set(CMAKE_CXX_STANDARD 20) # Process Abseil's CMake build system add_subdirectory(abseil-cpp) add_executable(tdriver tdriver.cc) # Declare dependencies on the absl libraries # See: https://github.com/abseil/abseil-cpp/blob/master/absl/container/CMakeLists.txt (flat_hash_map) target_link_libraries(tdriver absl::container_memory absl::core_headers absl::hash_function_defaults absl::raw_hash_map absl::algorithm_container absl::memory )