Skip to content

Commit 8a2933b

Browse files
committed
Include integration test
1 parent 032ec9c commit 8a2933b

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

test/integration/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
cmake_minimum_required(VERSION 3.14)
2+
project(myproject VERSION 1.0.1)
3+
set(CMAKE_CXX_STANDARD 17)
4+
5+
find_package(Matplot++)
6+
7+
if (Matplot++_FOUND)
8+
add_executable(myprogram main.cpp)
9+
target_link_libraries(myprogram PRIVATE Matplot++::matplot)
10+
endif()

test/integration/main.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//
2+
// Created by Alan Freitas on 05/10/20.
3+
//
4+
5+
#include <matplot/matplot.h>
6+
7+
int main() {
8+
std::vector<double> x = {1,2,3,4,5};
9+
matplot::plot(x);
10+
matplot::show();
11+
}

0 commit comments

Comments
 (0)