cmake_minimum_required(VERSION 3.20) project(AdventOfCode2022) set(CMAKE_CXX_STANDARD 23) include(FetchContent) FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git GIT_TAG 67e12da316754ff3c6c91b50aafb2658438f3c1e) # the commit hash for 1.7.0 # FetchContent_MakeAvailable(cpr) file(GLOB_RECURSE SRC_FILES src/**.cpp src/**.h) add_executable(AdventOfCode2022 ${SRC_FILES}) # target_link_libraries(AdventOfCode2022 PRIVATE cpr::cpr)