-
Notifications
You must be signed in to change notification settings - Fork 30
/
CMakeLists.txt
34 lines (31 loc) · 1.2 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
# (C) Copyright 2020- ECMWF.
#
# 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.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmental organisation
# nor does it submit to any jurisdiction.
if( NOT ectrans_VERSION_PATCH )
set( ectrans_VERSION_PATCH 0 )
endif()
configure_file( version.c.in version.c )
ecbuild_add_library( TARGET transi_dp
SOURCES transi_module.F90
transi.h
transi.c
version.h
${CMAKE_CURRENT_BINARY_DIR}/version.c
HEADER_DESTINATION include/ectrans
PUBLIC_INCLUDES $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
PRIVATE_LIBS trans_dp
PRIVATE_DEFINITIONS ECTRANS_HAVE_MPI=${ectrans_HAVE_MPI}
)
ectrans_target_fortran_module_directory( TARGET transi_dp
MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/module/trans_dp
)
file( GLOB transi_includes include/ectrans/* )
install(
FILES ${transi_includes}
DESTINATION include/ectrans
)