23 lines
573 B
CMake
23 lines
573 B
CMake
|
cmake_minimum_required(VERSION 3.30)
|
||
|
project(nutri)
|
||
|
|
||
|
set(CMAKE_CXX_STANDARD 26)
|
||
|
|
||
|
find_package(fmt REQUIRED)
|
||
|
find_package(cpr REQUIRED)
|
||
|
find_package(nlohmann_json REQUIRED)
|
||
|
|
||
|
include_directories(${CMAKE_SOURCE_DIR}/external/ctre/include)
|
||
|
add_subdirectory(external/ctre/)
|
||
|
|
||
|
add_executable(
|
||
|
nutri
|
||
|
src/main.cpp
|
||
|
src/ArgParser.hpp
|
||
|
src/Helpers/Utility.cpp
|
||
|
src/Helpers/Utility.hpp
|
||
|
src/Helpers/WolframAlpha.hpp
|
||
|
src/Helpers/WolframAlpha.cpp)
|
||
|
|
||
|
target_link_libraries(nutri PRIVATE cpr::cpr nlohmann_json::nlohmann_json ctre::ctre)
|