update cmakelistss

This commit is contained in:
张壹 2021-08-21 21:56:22 +08:00
parent 24b660cf03
commit d8854b0ab1
4 changed files with 4 additions and 3 deletions

View File

@ -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})

View File

@ -1,4 +1,4 @@
#include "gmt.h"
#include "gmt/gmt.h"
#include "iostream"
#include "string"
#include "unistd.h"

View File

@ -1,4 +1,4 @@
#include "gmt.h"
#include "gmt/gmt.h"
#include "stdio.h"
#include "unistd.h"
#include "iostream"

View File

@ -1,4 +1,4 @@
#include "gmt.h"
#include "gmt/gmt.h"
#include "stdio.h"
#include "unistd.h"
#include "iostream"