cmake_minimum_required(VERSION 3.20) project(AdventOfCode2022) set(CMAKE_CXX_STANDARD 23) if (WIN32) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) endif() file(GLOB_RECURSE SRC_FILES src/**.cpp) add_executable(AdventOfCode2022 ${SRC_FILES}) include(FetchContent) FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git GIT_TAG 100cf2050be7619430a615cd0d580b33c62fde6b) FetchContent_MakeAvailable(cpr) target_link_libraries(AdventOfCode2022 cpr::cpr)