-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
48 lines (43 loc) · 1.48 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
esma_set_this ()
set (kpp_gas_dir kpp/gas)
set (srcs
${kpp_gas_dir}/kpp_achem_gas_Precision.f90
${kpp_gas_dir}/kpp_achem_gas_Parameters.f90
${kpp_gas_dir}/kpp_achem_gas_Global.f90
${kpp_gas_dir}/kpp_achem_gas_Function.f90
${kpp_gas_dir}/kpp_achem_gas_JacobianSP.f90
${kpp_gas_dir}/kpp_achem_gas_Jacobian.f90
${kpp_gas_dir}/kpp_achem_gas_HessianSP.f90
${kpp_gas_dir}/kpp_achem_gas_Hessian.f90
${kpp_gas_dir}/kpp_achem_gas_StoichiomSP.f90
${kpp_gas_dir}/kpp_achem_gas_Stoichiom.f90
${kpp_gas_dir}/kpp_achem_gas_Rates.f90
${kpp_gas_dir}/kpp_achem_gas_Monitor.f90
${kpp_gas_dir}/kpp_achem_gas_Util.f90
${kpp_gas_dir}/kpp_achem_gas_LinearAlgebra.f90
${kpp_gas_dir}/kpp_achem_gas_Integrator.f90
GACL_ConstantsMod.F90
GACL_EmissionsMod.F90
GACL_ReactionRatesMod.F90
GACL_DryDepositionMod.F90
ACHEM_GridCompMod.F90
)
esma_add_library (
${this}
SRCS ${srcs}
DEPENDENCIES Chem_Shared MAPL GMAO_mpeu ESMF::ESMF NetCDF::NetCDF_Fortran
)
target_compile_definitions (${this} PRIVATE MAPL_MODE GEOS5)
set_target_properties (${this} PROPERTIES COMPILE_FLAGS ${PP})
new_esma_generate_automatic_code (
${this} ACHEM_Registry.rc
"ACHEM_ExportSpec___.h;ACHEM_GetPointer___.h"
ACHEM_History___.rc
${include_ACHEM} ${esma_etc}
"-f"
)
file (GLOB_RECURSE rc_files CONFIGURE_DEPENDS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.rc *.yaml)
foreach ( file ${rc_files} )
get_filename_component( dir ${file} DIRECTORY )
install( FILES ${file} DESTINATION etc/${dir} )
endforeach()