From 04586b54ce20ccde21f6810d16a3ff927a23a00c Mon Sep 17 00:00:00 2001 From: Micael Oliveira Date: Mon, 9 Oct 2023 15:16:17 +1100 Subject: [PATCH] Compile several utilities from WW3. --- WW3/CMakeLists.txt | 6 ++++++ WW3/ww3_files.cmake | 1 + 2 files changed, 7 insertions(+) diff --git a/WW3/CMakeLists.txt b/WW3/CMakeLists.txt index 29c3a25..f1fb9f8 100644 --- a/WW3/CMakeLists.txt +++ b/WW3/CMakeLists.txt @@ -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() diff --git a/WW3/ww3_files.cmake b/WW3/ww3_files.cmake index ea75ceb..34b5dcc 100644 --- a/WW3/ww3_files.cmake +++ b/WW3/ww3_files.cmake @@ -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