cmake_minimum_required(VERSION 3.10) project(my_project) set(CMAKE_POSITION_INDEPENDENT_CODE ON) # Abseil requires C++14 set(CMAKE_CXX_STANDARD 14) # Process Abseil's CMake build system add_subdirectory(/Source/abseil-cpp /Source/abseil-cpp/build) add_subdirectory(/Source/s2geometry /Source/s2geometry/build) add_executable(generate generate.cpp) # Declare dependency on the absl::strings library target_link_libraries(generate absl::strings s2)