Update version info for release v4.6.1 (#2122)
[WRF.git] / phys / CMakeLists.txt
blobd3df6a28e0a0e3f585591bd6a4713fae70df240d
1 # WRF CMake Build
3 ########################################################################################################################
4
5 # Quickly preprocess some files so that cmake can understand the module dependencies
7 ########################################################################################################################
8 wrf_c_preproc_fortran( 
9                       TARGET_NAME     module_ra_rrtmg_preproc
10                       OUTPUT_DIR      ${CMAKE_CURRENT_BINARY_DIR}/preproc/
11                       EXTENSION       ".f90"
12                       INCLUDES        ${CMAKE_CURRENT_SOURCE_DIR}
13                       DEPENDENCIES    registry_code
14                       DEFINITIONS     ${PROJECT_COMPILE_DEFINITIONS}
15                       SOURCES         module_ra_rrtmg_lwk.F
16                                       module_ra_rrtmg_lwf.F
17                                       module_ra_rrtmg_swk.F
18                                       module_ra_rrtmg_swf.F
19                                       module_sf_clm.F
20                       )
22 add_dependencies( ${PROJECT_NAME}_Core module_ra_rrtmg_preproc )
24 target_sources(
25                 ${PROJECT_NAME}_Core
26                 PRIVATE
27                   ccpp_kind_types.F
28                   complex_number_module.F
29                   module_bep_bem_helper.F
30                   module_bl_acm.F
31                   module_bl_boulac.F
32                   module_bl_camuwpbl_driver.F
33                   module_bl_eepsilon.F
34                   module_bl_fogdes.F
35                   module_bl_gbmpbl.F
36                   module_bl_gfs.F
37                   module_bl_gfsedmf.F
38                   module_bl_gwdo.F
39                   module_bl_gwdo_gsl.F
40                   module_bl_keps.F
41                   module_bl_mfshconvpbl.F
42                   module_bl_mrf.F
43                   module_bl_myjpbl.F
44                   module_bl_myjurb.F
45                   module_bl_mynn.F
46                   module_bl_mynn_common.F
47                   module_bl_mynn_wrapper.F
48                   module_bl_qnsepbl.F
49                   module_bl_shinhong.F
50                   module_bl_temf.F
51                   module_bl_ysu.F
52                   module_cam_bl_diffusion_solver.F
53                   module_cam_bl_eddy_diff.F
54                   module_cam_cldwat.F
55                   module_cam_constituents.F
56                   module_cam_error_function.F
57                   module_cam_esinti.F
58                   module_cam_gffgch.F
59                   module_cam_infnan.F
60                   module_cam_molec_diff.F
61                   module_cam_mp_cldwat2m_micro.F
62                   module_cam_mp_conv_water.F
63                   module_cam_mp_microp_aero.F
64                   module_cam_mp_modal_aero_initialize_data_phys.F
65                   module_cam_mp_ndrop.F
66                   module_cam_mp_qneg3.F
67                   module_cam_mp_radconstants.F
68                   module_cam_physconst.F
69                   module_cam_shr_const_mod.F
70                   module_cam_shr_kind_mod.F
71                   module_cam_support.F
72                   module_cam_trb_mtn_stress.F
73                   module_cam_upper_bc.F
74                   module_cam_wv_saturation.F
75                   module_checkerror.F
76                   module_cu_bmj.F
77                   module_cu_camzm.F
78                   module_cu_camzm_driver.F
79                   module_cu_g3.F
80                   module_cu_gd.F
81                   module_cu_gf_ctrans.F
82                   module_cu_gf_deep.F
83                   module_cu_gf_sh.F
84                   module_cu_gf_wrfdrv.F
85                   module_cu_kf.F
86                   module_cu_kfcup.F
87                   module_cu_kfeta.F
88                   module_cu_ksas.F
89                   module_cu_mskf.F
90                   module_cu_nsas.F
91                   module_cu_ntiedtke.F
92                   module_cu_osas.F
93                   module_cu_sas.F
94                   module_cu_scalesas.F
95                   module_cu_tiedtke.F
96                   module_cumulus_driver.F
97                   module_data_cam_mam_aero.F
98                   module_data_cam_mam_asect.F
99                   module_data_gocart_dust.F
100                   module_diag_afwa.F
101                   module_diag_cl.F
102                   module_diag_functions.F
103                   module_diag_hailcast.F
104                   module_diag_misc.F
105                   module_diag_nwp.F
106                   module_diag_pld.F
107                   module_diag_rasm.F
108                   module_diag_solar.F
109                   module_diag_trad_fields.F
110                   module_diag_zld.F
111                   module_diagnostics_driver.F
112                   module_dust_emis.F
113                   module_fdda_psufddagd.F
114                   module_fdda_spnudging.F
115                   module_fddagd_driver.F
116                   module_fddaobs_driver.F
117                   module_fddaobs_rtfdda.F
118                   module_fire_emis.F
119                   module_firebrand_spotting.F
120                   module_firebrand_spotting_mpi.F
121                   module_fr_fire_atm.F
122                   module_fr_fire_core.F
123                   module_fr_fire_driver.F
124                   module_fr_fire_driver_wrf.F
125                   module_fr_fire_model.F
126                   module_fr_fire_phys.F
127                   module_fr_fire_util.F
128                   module_gfs_funcphys.F
129                   module_gfs_machine.F
130                   module_gfs_physcons.F
131                   module_gocart_coupling.F
132                   module_irrigation.F
133                   module_lightning_driver.F
134                   module_ltng_cpmpr92z.F
135                   module_ltng_crmpr92.F
136                   module_ltng_iccg.F
137                   module_ltng_lpi.F
138                   module_madwrf.F
139                   module_microphysics_driver.F
140                   module_microphysics_zero_out.F
141                   module_mixactivate.F
142                   module_mp_cammgmp_driver.F
143                   module_mp_etanew.F
144                   module_mp_fast_sbm.F
145                   module_mp_fer_hires.F
146                   module_mp_full_sbm.F
147                   module_mp_gsfcgce.F
148                   module_mp_gsfcgce_4ice_nuwrf.F
149                   module_mp_jensen_ishmael.F
150                   module_mp_kessler.F
151                   module_mp_lin.F
152                   module_mp_milbrandt2mom.F
153                   module_mp_morr_two_moment.F
154                   module_mp_morr_two_moment_aero.F
155                   module_mp_nssl_2mom.F
156                   module_mp_ntu.F
157                   module_mp_p3.F
158                   module_mp_radar.F
159                   module_mp_SBM_polar_radar.F
160                   module_mp_sbu_ylin.F
161                   module_mp_thompson.F
162                   module_mp_wdm5.F
163                   module_mp_wdm6.F
164                   module_mp_wdm7.F
165                   module_mp_wsm3.F
166                   module_mp_wsm5.F
167                   module_mp_wsm6.F
168                   module_mp_wsm6r.F
169                   module_mp_wsm7.F
170                   module_pbl_driver.F
171                   module_physics_addtendc.F
172                   module_physics_init.F
173                   module_progtm.F
174                   module_ra_aerosol.F
175                   module_ra_cam.F
176                   module_ra_cam_support.F
177                   module_ra_clWRF_support.F
178                   module_ra_eclipse.F
179                   module_ra_effective_radius.F
180                   module_ra_farms.F
181                   module_ra_flg.F
182                   module_ra_gfdleta.F
183                   module_ra_goddard.F
184                   module_ra_gsfcsw.F
185                   module_ra_hs.F
186                   module_ra_rrtm.F
187                   module_ra_rrtmg_aero_optical_util_cmaq.F
188                   module_ra_rrtmg_lw.F
189                   # module_ra_rrtmg_lwf.F
190                   ${CMAKE_CURRENT_BINARY_DIR}/preproc/module_ra_rrtmg_lwf.f90
191                   # module_ra_rrtmg_lwk.F
192                   ${CMAKE_CURRENT_BINARY_DIR}/preproc/module_ra_rrtmg_lwk.f90
193                   module_ra_rrtmg_sw.F
194                   # module_ra_rrtmg_swf.F
195                   ${CMAKE_CURRENT_BINARY_DIR}/preproc/module_ra_rrtmg_swf.f90
196                   # module_ra_rrtmg_swk.F
197                   ${CMAKE_CURRENT_BINARY_DIR}/preproc/module_ra_rrtmg_swk.f90
199                   module_ra_sw.F
200                   module_radiation_driver.F
201                   module_sf_3dpwp.F
202                   module_sf_bem.F
203                   module_sf_bep.F
204                   module_sf_bep_bem.F
205                   # module_sf_clm.F
206                   ${CMAKE_CURRENT_BINARY_DIR}/preproc/module_sf_clm.f90
207                   module_sf_ctsm.F
208                   module_sf_exchcoef.F
209                   module_sf_fogdes.F
210                   module_sf_gecros.F
211                   module_sf_gfdl.F
212                   module_sf_gfs.F
213                   module_sf_idealscmsfclay.F
214                   module_sf_lake.F
215                   module_sf_myjsfc.F
216                   module_sf_mynn.F
217                   module_sf_noah_seaice.F
218                   module_sf_noah_seaice_drv.F
219                   module_sf_noahdrv.F
220                   module_sf_noahlsm.F
221                   module_sf_noahlsm_glacial_only.F
222                   # NoahMP Code
223                   noahmp/drivers/wrf/module_sf_noahmpdrv.F
224                   noahmp/src/module_sf_noahmp_glacier.F
225                   noahmp/src/module_sf_noahmp_groundwater.F
226                   noahmp/src/module_sf_noahmplsm.F
228                   module_sf_ocean_driver.F
229                   module_sf_oml.F
230                   module_sf_pxlsm.F
231                   module_sf_pxlsm_data.F
232                   module_sf_pxsfclay.F
233                   module_sf_qnsesfc.F
234                   module_sf_ruclsm.F
235                   module_sf_scmflux.F
236                   module_sf_scmskintemp.F
237                   module_sf_sfcdiags.F
238                   module_sf_sfcdiags_ruclsm.F
239                   module_sf_sfclay.F
240                   module_sf_sfclayrev.F
241                   module_sf_slab.F
242                   module_sf_ssib.F
243                   module_sf_sstskin.F
244                   module_sf_temfsfclay.F
245                   module_sf_tmnupdate.F
246                   module_sf_urban.F
247                   module_shallowcu_driver.F
248                   module_shcu_camuwshcu.F
249                   module_shcu_camuwshcu_driver.F
250                   module_shcu_deng.F
251                   module_shcu_grims.F
252                   module_shcu_nscv.F
253                   module_surface_driver.F
254                   module_wind_fitch.F
255                   module_wind_mav.F
257                   # Shared physics
258                   physics_mmm/bl_gwdo.F90
259                   physics_mmm/bl_ysu.F90
260                   physics_mmm/cu_ntiedtke.F90
261                   physics_mmm/module_libmassv.F90
262                   physics_mmm/mp_radar.F90
263                   physics_mmm/mp_wsm6.F90
264                   physics_mmm/mp_wsm6_effectRad.F90
265                   physics_mmm/sf_sfclayrev.F90
266                   )
269 target_include_directories( 
270                             ${PROJECT_NAME}_Core
271                             PRIVATE
272                               ${CMAKE_CURRENT_SOURCE_DIR}
273                             )