From d8854b0ab1932ab3f5cb6a4366041db954ad71fa Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Sat, 21 Aug 2021 21:56:22 +0800 Subject: [PATCH] update cmakelistss --- CMakeLists.txt | 1 + src/gridding.cpp | 2 +- src/plot_grid.cpp | 2 +- src/plot_memory.cpp | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fbb6f30..a6f73b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,7 @@ endif() message(STATUS "GMT library found as: " ${GMT_LIB}) macro(add_example name file) + include_directories(/opt/homebrew/include) add_executable(${name} ${file}.cpp) if(WIN32) target_link_libraries(${name} PRIVATE ${GMT_LIB}) diff --git a/src/gridding.cpp b/src/gridding.cpp index 66b40a8..de1bdfa 100644 --- a/src/gridding.cpp +++ b/src/gridding.cpp @@ -1,4 +1,4 @@ -#include "gmt.h" +#include "gmt/gmt.h" #include "iostream" #include "string" #include "unistd.h" diff --git a/src/plot_grid.cpp b/src/plot_grid.cpp index 7684298..7063c10 100644 --- a/src/plot_grid.cpp +++ b/src/plot_grid.cpp @@ -1,4 +1,4 @@ -#include "gmt.h" +#include "gmt/gmt.h" #include "stdio.h" #include "unistd.h" #include "iostream" diff --git a/src/plot_memory.cpp b/src/plot_memory.cpp index 3767044..ba1fd8a 100644 --- a/src/plot_memory.cpp +++ b/src/plot_memory.cpp @@ -1,4 +1,4 @@ -#include "gmt.h" +#include "gmt/gmt.h" #include "stdio.h" #include "unistd.h" #include "iostream"