Skip to content

Commit

Permalink
Compile several utilities from WW3.
Browse files Browse the repository at this point in the history
  • Loading branch information
micaeljtoliveira committed Oct 9, 2023
1 parent 377c1fc commit 04586b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions WW3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ include("ww3_files.cmake")
add_fortran_library(ww3 mod STATIC ${ww3_src_files})
target_link_libraries(ww3 PUBLIC esmf
NetCDF::NetCDF_Fortran)

# WW3 executables
foreach(EXE ww3_grid ww3_strt ww3_ounf ww3_outf ww3_outp)
add_executable(${EXE} WW3/model/src/${EXE}.F90)
target_link_libraries(${EXE} PRIVATE ww3)
endforeach()
1 change: 1 addition & 0 deletions WW3/ww3_files.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ list(APPEND ww3_src_files
WW3/model/src/w3nmltrncmd.F90
WW3/model/src/w3nmluprstrmd.F90
WW3/model/src/w3odatmd.F90
WW3/model/src/w3ounfmetamd.F90
WW3/model/src/w3parall.F90
WW3/model/src/w3partmd.F90
WW3/model/src/w3servmd.F90
Expand Down

0 comments on commit 04586b5

Please sign in to comment.