update to gmt6 and change to cmake
This commit is contained in:
@@ -2,12 +2,14 @@ cmake_minimum_required(VERSION 3.15.2 FATAL_ERROR)
|
||||
|
||||
project(GMT_API_EX VERSION 0.1.0 LANGUAGES CXX)
|
||||
|
||||
include_directories("/usr/local/include/gmt")
|
||||
find_library(${GMT_LIB} gmt "/usr/local/lib")
|
||||
include_directories(/usr/local/include/gmt)
|
||||
find_library(GMT_LIB gmt /usr/local/lib)
|
||||
|
||||
macro(add_example name file)
|
||||
add_executable(${name} ${file}.cpp)
|
||||
target_link_libraries(${name} PUBLIC ${GMT_LIB})
|
||||
endmacro()
|
||||
|
||||
add_example(ex1 example1/gridding)
|
||||
add_example(ex1 src/gridding)
|
||||
add_example(ex2 src/plot_grid)
|
||||
add_example(ex3 src/plot_memory)
|
||||
Reference in New Issue
Block a user