11/* runcpp2
22
3+ OverrideCompileFlags:
4+ Windows:
5+ msvc:
6+ Append: "/wd4251"
7+ Defines: ["MATPLOT_BUILD_HIGH_RESOLUTION_WORLD_MAP"]
38Dependencies:
49- Name: matplotplusplus
510 Platforms: [DefaultPlatform]
1722 SearchDirectories: ["./build/source/matplot"]
1823 Windows:
1924 DefaultProfile:
20- SearchLibraryNames: ["libmatplot "]
25+ SearchLibraryNames: ["matplot "]
2126 SearchDirectories: ["./build/source/matplot/debug"]
2227 Setup:
2328 - "mkdir build"
2429 - "cd build && cmake .. -DMATPLOTPP_BUILD_WITH_SANITIZERS=OFF -DMATPLOTPP_BUILD_EXAMPLES=OFF -DMATPLOTPP_BUILD_INSTALLER=OFF -DMATPLOTPP_BUILD_PACKAGE=OFF -DBUILD_SHARED_LIBS=ON"
25- - "cd build && cmake --build . -j 16"*/
30+ - "cd build && cmake --build . -j 16"
31+ */
2632
2733#include " matplot/matplot.h"
2834
@@ -33,9 +39,9 @@ int main()
3339{
3440 // NOTE: Alternatively, you can put this under "Setup" section in runcpp2 build settings
3541#ifdef _WIN32
36- if (system (" which gnuplot" ) != 0 )
37- #else
3842 if (system (" where gnuplot" ) != 0 )
43+ #else
44+ if (system (" which gnuplot" ) != 0 )
3945#endif
4046 {
4147 std::cout << " Failed to find gnuplot, please install it on the system" << std::endl;
@@ -45,7 +51,6 @@ int main()
4551 auto f1 = matplot::figure ();
4652 matplot::plot (matplot::vector_1d{1 ., 2 ., 3 .}, matplot::vector_1d{2 ., 4 ., 6 .});
4753
48-
4954 auto f2 = matplot::figure ();
5055 matplot::scatter (matplot::iota (1 , 20 ), matplot::rand (20 , 0 , 1 ));
5156
0 commit comments