@@ -15,6 +15,39 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
15
15
# User options.
16
16
option (OPENMP "use OpenMP threading" ON )
17
17
option (ENABLE_DOCS "Enable generation of doxygen-based documentation." OFF )
18
+
19
+ # Utilities to be built (Default: ALL)
20
+ option (ICEBLEND "Enable building emcsfc_ice_blend.fd" ON )
21
+ option (SNOW2MDL "Enable building emcsfc_snow2mdl.fd" ON )
22
+ option (GCYCLE "Enable building global_cycle.fd" ON )
23
+ option (FRENCTOOLS "Enable building fre-nctools.fd" ON )
24
+ option (GRIDTOOLS "Enable building grid_tools.fd" ON )
25
+ option (CHGRES "Enable building chgres_cube.fd" ON )
26
+ option (OROG_MASK_TOOLS "Enable building orog_mask_tools.fd" ON )
27
+ option (SFC_CLIMO_GEN "Enable building sfc_climo_gen.fd" ON )
28
+ option (VCOORD_GEN "Enable building vcoord_gen.fd" ON )
29
+ option (FVCOMTOOLS "Enable building fvcom_tools.fd" ON )
30
+ option (GBLEVENTS "Enable building gblevents.fd" ON )
31
+ option (CPLD_GRIDGEN "Enable building cpld_gridgen.fd" ON )
32
+ option (WEIGHT_GEN "Enable building weight_gen.fd" ON )
33
+
34
+ # Option to build application specific utilities
35
+ option (GFS "Enable building GFS-only utilities" OFF )
36
+
37
+ # When building the GFS, the following need not be built
38
+ if (GFS)
39
+ message (STATUS "Building utilities specific to the GFS" )
40
+ set (FRENCTOOLS OFF CACHE BOOL "Disable building fre-nctools.fd" FORCE)
41
+ set (GRIDTOOLS OFF CACHE BOOL "Disable building grid_tools.fd" FORCE)
42
+ set (OROG_MASK_TOOLS OFF CACHE BOOL "Disable building orog_mask_tools.fd" FORCE)
43
+ set (SFC_CLIMO_GEN OFF CACHE BOOL "Disable building sfc_climo_gen.fd" FORCE)
44
+ set (VCOORD_GEN OFF CACHE BOOL "Disable building vcoord_gen.fd" FORCE)
45
+ set (FVCOMTOOLS OFF CACHE BOOL "Disable building fvcom_tools.fd" FORCE)
46
+ set (GBLEVENTS OFF CACHE BOOL "Disable building gblevents.fd" FORCE)
47
+ set (CPLD_GRIDGEN OFF CACHE BOOL "Disable building cpld_gridgen.fd" FORCE)
48
+ set (WEIGHT_GEN OFF CACHE BOOL "Disable building weight_gen.fd" FORCE)
49
+ endif ()
50
+
18
51
SET (TEST_FILE_DIR "." CACHE STRING "Check this directory for test files before using FTP." )
19
52
20
53
# Set the build type.
@@ -80,7 +113,7 @@ find_package(sigio 2.3.0 REQUIRED)
80
113
if (ENABLE_DOCS)
81
114
find_package (Doxygen REQUIRED)
82
115
set (abs_top_srcdir "${CMAKE_SOURCE_DIR} " )
83
- add_subdirectory (docs)
116
+ add_subdirectory (docs)
84
117
endif ()
85
118
86
119
add_subdirectory (sorc)
0 commit comments