-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
85 lines (70 loc) · 1.73 KB
/
CMakeLists.txt
File metadata and controls
85 lines (70 loc) · 1.73 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
add_subdirectory(testsuites)
add_subdirectory(jedi)
set(dasscripts
FixUnblocked.csh
fix_gocart_rc.csh
GEOSdas.csm
Reblock.csh
fvgaas
fvoseledec
fvpert
fvpsas
fvsens
fvsvec
g54dvar
fp_seamless
ldas_run.csh
mom6diag.csh
read_HIST.csh )
set(extraperlscripts
fvarchive
fvsetup
fvconvert
)
set(misc_etc
monthly.yyyymm.pl.tmpl
monthly_tarandclean.j.tmpl
monthly_prefetch.j.tmpl
monthly_means.j.tmpl
monthly_plots.j.tmpl
ncep_ana.tbl
ncep_diag.tbl
ncep_prog.tbl
noreplay.acq
plots_transfer.csh.tmpl
)
file(GLOB perlscripts *.pl)
file(GLOB pythonscripts *.py)
file(GLOB pmscripts *.pm)
install (
PROGRAMS ${dasscripts} ${extraperlscripts} ${perlscripts} ${pmscripts} ${pythonscripts}
DESTINATION bin )
file(GLOB rc_files *.rc)
file(GLOB nml_files *.nml)
install (
FILES ${rc_files} ${nml_files} ${misc_etc}
DESTINATION etc
)
set (perlscripts_with_dasperl
fcst_convert
fvsavecf
)
set (DASPERL /usr/bin/perl)
foreach (script ${perlscripts_with_dasperl})
configure_file(${script} ${script} @ONLY)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${script} DESTINATION bin)
endforeach ()
# MAT The DAS seems to require VERSION and CVSTAG
# The version is easy as we set that in the project
configure_file(VERSION.in VERSION @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION DESTINATION etc)
# CVSTAG is set and used in testsuites/
set(RELEASEFILES
/etc/SuSE-release
/etc/os-release
)
foreach (file ${RELEASEFILES})
if (EXISTS ${file})
install(FILES ${file} DESTINATION etc)
endif ()
endforeach ()