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"