From f0af7118b8afa1bc26456afb9ba9ac95060ce0c0 Mon Sep 17 00:00:00 2001 From: Fayorg Date: Fri, 23 Feb 2024 14:13:43 +0100 Subject: [PATCH] add: mathplot as dependency --- CMakeLists.txt | 3 +++ main.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0bae021..02b0820 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,3 +5,6 @@ set(CMAKE_CXX_STANDARD 14) add_executable(TP8 main.cpp) + +find_package(Matplot++ CONFIG REQUIRED) +target_link_libraries(TP8 PRIVATE Matplot++::cimg Matplot++::matplot) diff --git a/main.cpp b/main.cpp index 6f21eab..48c9d65 100644 --- a/main.cpp +++ b/main.cpp @@ -3,6 +3,7 @@ // #include "iostream" +#include "matplot/matplot.h" using namespace std;