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;