forked from JCSDA/CRTMv3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
34 lines (27 loc) · 825 Bytes
/
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
#
# CRTM
# Copyright and License: see LICENSE
cmake_minimum_required( VERSION 3.12 )
project( crtm VERSION 3.0.0 LANGUAGES Fortran )
option(OPENMP "Build crtm with OpenMP support" ON)
## Ecbuild integration
find_package( ecbuild QUIET )
include( ecbuild_system NO_POLICY_SCOPE )
ecbuild_declare_project()
list( APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake )
set( CMAKE_DIRECTORY_LABELS ${PROJECT_NAME} )
## Configuration options
include( ${PROJECT_NAME}_compiler_flags )
include(GNUInstallDirs)
## Dependencies
find_package( jedicmake QUIET )
if(OPENMP)
find_package( OpenMP COMPONENTS Fortran )
endif()
find_package( NetCDF REQUIRED COMPONENTS Fortran )
## Sources
add_subdirectory( src )
add_subdirectory( test )
include(CTest)
ecbuild_install_project( NAME ${PROJECT_NAME} )
ecbuild_print_summary()