forked from ESCOMP/CTSM
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ESCOMP#40 from hafs-community/feature/hafs_cdeps_pr
Updating CDEPS CMake build system to compile with HAFS
- Loading branch information
Showing
12 changed files
with
161 additions
and
72 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 |
---|---|---|
@@ -1,16 +1,28 @@ | ||
project(datm Fortran) | ||
set(SRCFILES atm_comp_nuopc.F90 | ||
datm_datamode_clmncep_mod.F90 | ||
datm_datamode_cplhist_mod.F90 | ||
datm_datamode_core2_mod.F90 | ||
datm_datamode_jra_mod.F90 | ||
datm_datamode_era5_mod.F90) | ||
|
||
add_library(datm atm_comp_nuopc.F90 | ||
datm_datamode_clmncep_mod.F90 | ||
datm_datamode_cplhist_mod.F90 | ||
datm_datamode_core2_mod.F90 | ||
datm_datamode_jra_mod.F90 | ||
datm_datamode_era5_mod.F90) | ||
|
||
foreach(FILE ${SRCFILES}) | ||
if(EXISTS "${CASEROOT}/SourceMods/src.datm/${FILE}") | ||
list(REMOVE_ITEM SRCFILES ${FILE}) | ||
list(APPEND SRCFILES "${CASEROOT}/SourceMods/src.datm/${FILE}") | ||
message("Using ${FILE} from ${CASEROOT}/SourceMods/src.datm") | ||
endif() | ||
endforeach() | ||
|
||
message("DATM srcfiles are ${SRCFILES}") | ||
|
||
add_library(datm ${SRCFILES}) | ||
|
||
add_dependencies(datm dshr streams) | ||
target_include_directories (datm PUBLIC ${ESMF_F90COMPILEPATHS}) | ||
target_include_directories (datm PUBLIC "${CMAKE_BINARY_DIR}/dshr") | ||
target_include_directories (datm PUBLIC "${CMAKE_SOURCE_DIR}") | ||
target_include_directories (datm PUBLIC "${CMAKE_BINARY_DIR}/share") | ||
target_include_directories (datm PUBLIC "${CMAKE_BINARY_DIR}/streams") | ||
target_include_directories (datm PUBLIC "${PIO_Fortran_INCLUDE_DIR}") | ||
target_include_directories (datm PRIVATE ${ESMF_F90COMPILEPATHS}) | ||
target_include_directories (datm PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/dshr) | ||
target_include_directories (datm PRIVATE ${CMAKE_SOURCE_DIR}) | ||
target_include_directories (datm PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/share) | ||
target_include_directories (datm PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/streams) | ||
target_include_directories (datm PRIVATE ${PIO_Fortran_INCLUDE_DIR}) |
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
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
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
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
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