Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions model/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ else()
endif()
set(CMAKE_Fortran_FLAGS "${FFLAGS} ${CPPDEFS} -I${LIBROOT}/include -I${LIBROOT}/finclude -I${LIBROOT}/nuopc/esmf/${NINST_VALUE}/include")

find_library(NETCDF_Fortran_LIBRARY NAMES netcdff HINTS ${NETCDF_PATH}/lib)

#-------------------------
# Set ESMF_F90COMPILEPATHS
#-------------------------
Expand Down Expand Up @@ -132,5 +134,7 @@ add_executable(ww3_grid ww3_grid.F90)
target_link_libraries(ww3_grid PRIVATE wav)
add_executable(ww3_strt ww3_strt.F90)
target_link_libraries(ww3_strt PRIVATE wav)
add_executable(ww3_bounc ww3_bounc.F90)
target_link_libraries(ww3_bounc PRIVATE wav ${NETCDF_Fortran_LIBRARY})

install(TARGETS wav)