forked from NOAA-PSL/land-offline_workflow
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
executable file
·59 lines (46 loc) · 2.12 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
48
49
50
51
52
53
54
55
56
57
58
59
# (C) Copyright 2017-2020 UCAR.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
################################################################################
# LandDA
################################################################################
cmake_minimum_required( VERSION 3.12 )
project( LandDA VERSION 0.0.0 LANGUAGES C CXX Fortran)
find_package(ecbuild 3.3.2 REQUIRED)
include( ecbuild_system NO_POLICY_SCOPE )
ecbuild_declare_project()
list( APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include( landda_compiler_flags )
################################################################################
# Dependencies
################################################################################
find_package( NetCDF REQUIRED COMPONENTS Fortran)
#find_package( gsl-lite REQUIRED HINTS $ENV{gsl_list_DIR})
#find_package( eckit 1.11.6 REQUIRED)
#find_package( fckit 0.7.0 REQUIRED)
#find_package( atlas 0.20.2 REQUIRED)
#find_package( oops 1.0.0 REQUIRED)
#find_package( saber 1.0.0 REQUIRED)
#find_package( ioda 1.0.0 REQUIRED)
#find_package( ufo 1.0.0 REQUIRED)
#find_package( crtm 2.2.3)
include_directories( ${NETCDF_INCLUDE_DIRS} )
################################################################################
# Sources
################################################################################
set( LANDDA_LINKER_LANGUAGE CXX)
add_subdirectory( vector2tile )
add_subdirectory( ufs-land-driver )
add_subdirectory( DA_update/add_jedi_incr )
add_subdirectory( DA_update/IMS_proc )
if(ECBUILD_INSTALL_FORTRAN_MODULES)
install(DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/${CMAKE_CFG_INTDIR} DESTINATION ${INSTALL_INCLUDE_DIR} )
endif()
################################################################################
# Finalise configuration
################################################################################
# prepares a tar.gz of the sources and/or binaries
ecbuild_install_project( NAME LandDA )
# print the summary of the configuration
ecbuild_print_summary()