leetcode-cpp/CMakeLists.txt
2025-06-12 22:23:50 +08:00

15 lines
389 B
CMake

cmake_minimum_required(VERSION 3.20)
project(leetcode-cpp)
set(CMAKE_CXX_STANDARD 20)
include_directories(include)
find_package(CURL REQUIRED)
find_package(nlohmann_json REQUIRED)
add_executable(leetcode-fetcher main.cpp
src/fetcher.cpp)
target_link_libraries(leetcode-fetcher PRIVATE CURL::libcurl)
target_link_libraries(leetcode-fetcher PRIVATE nlohmann_json::nlohmann_json)