Skip to content
Snippets Groups Projects
Commit 3ff99d67 authored by Debolskiy Andrey's avatar Debolskiy Andrey :bicyclist_tone5:
Browse files

added to work with netCDF

parent d4866128
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.15) cmake_minimum_required(VERSION 3.23)
project(scm_io) project(scm_io)
set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD 14)
...@@ -11,8 +11,18 @@ set(bounds "-free -fimplicit-none ") ...@@ -11,8 +11,18 @@ set(bounds "-free -fimplicit-none ")
set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} ${bounds} -g -fbacktrace -O0 -fcheck=all") set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} ${bounds} -g -fbacktrace -O0 -fcheck=all")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${dialect}") set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${dialect}")
set(plt_io set(plt_io
src/scm_io_plt.f90 src/scm_io_plt.f90
src/test_io_plt.f90) src/test_io_plt.f90)
add_executable(test_plt ${plt_io}) add_executable(test_plt ${plt_io})
find_package(netCDF-Fortran REQUIRED
HINTS /usr/local/Cellar/netcdf-fortran/4.6.1/lib/cmake/netCDF/)
target_link_libraries(test_plt PRIVATE netCDF-Fortran)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment