-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modifications for building src directory with WRF CMake build system
- Loading branch information
1 parent
e1eb6d6
commit 35f2d3e
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
add_library(hydro_wrf_cpl STATIC | ||
wrf_drv_HYDRO.F90 | ||
module_wrf_HYDRO.F90 | ||
) | ||
|
||
add_dependencies(hydro_wrf_cpl | ||
hydro_mpp | ||
hydro_utils | ||
hydro_debug_utils | ||
hydro_data_rec | ||
hydro_driver | ||
hydro_orchestrator | ||
${PROJECT_NAME}_Core | ||
MPI::MPI_Fortran | ||
) | ||
|
||
target_include_directories(hydro_wrf_cpl | ||
PRIVATE | ||
$<TARGET_PROPERTY:${PROJECT_NAME}_Core,Fortran_MODULE_DIRECTORY> | ||
$<TARGET_PROPERTY:esmf_time_f90,Fortran_MODULE_DIRECTORY> | ||
) | ||
|
||
target_include_directories(hydro_wrf_cpl PUBLIC | ||
${MPI_Fortran_MODULE_DIR} | ||
) |