You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
513 B

9 months ago
cmake_minimum_required(VERSION 3.20)
project(AdventOfCode2023)
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(AdventOfCode2023 ${SRC_FILES})
include(FetchContent)
FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git GIT_TAG 3b15fa8)
9 months ago
FetchContent_MakeAvailable(cpr)
target_link_libraries(AdventOfCode2023 cpr::cpr)