ungrib build
[WPS.git] / ungrib / src / ngl / w3 / CMakeLists.txt
blobf5c8b18fd301f7ed2cff526c8f71669612bc9c2a
1 get_filename_component( FOLDER_COMPILE_TARGET ${CMAKE_CURRENT_SOURCE_DIR} NAME )
3 add_library( ${FOLDER_COMPILE_TARGET} STATIC )
5 set_target_properties( 
6                       ${FOLDER_COMPILE_TARGET}
7                         PROPERTIES
8                           Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${FOLDER_COMPILE_TARGET}
9                           # Fortran_FORMAT           FREE
10                       )
11 target_sources( 
12                 ${FOLDER_COMPILE_TARGET}
13                 PRIVATE
14                   getgb.f
15                   getgbmh.f
16                   putgbex.f
17                   w3fi73.f
18                   getgb1r.f
19                   getgbmp.f
20                   putgbn.f
21                   w3fi74.f
22                   getgb1re.f
23                   getgbp.f
24                   r63w72.f
25                   w3fi75.f
26                   getgb1s.f
27                   getgi.f
28                   sbyte.f
29                   w3fi76.f
30                   getgbe.f
31                   getgir.f
32                   sbytes.f
33                   w3fi82.f
34                   getgbeh.f
35                   idsdef.f
36                   w3fi83.f
37                   getgbem.f
38                   iw3jdn.f
39                   w3difdat.f
40                   w3fs26.f
41                   getgbemh.f
42                   ixgb.f
43                   w3doxdat.f
44                   w3log.f
45                   getgbemp.f
46                   lengds.f
47                   w3fi01.f
48                   w3movdat.f
49                   getgbens.f
50                   pdsens.f
51                   w3fi58.f
52                   w3reddat.f
53                   getgbep.f
54                   pdseup.f
55                   w3fi59.f
56                   w3tagb.f
57                   errmsg.f
58                   getgbex.f
59                   putgb.f
60                   w3fi63.f
61                   gbytes.f
62                   getgbexm.f
63                   putgbe.f
64                   w3fi68.f
65                   gbytes_char.f
66                   getgbh.f
67                   putgben.f
68                   getbit.f
69                   getgbm.f
70                   putgbens.f
71                   w3fi72.f
72                   fparsei.f
73                   fparser.f
74                   instrument.f
75                   start.f
76                   summary.f
77                   w3utcdat.f
78                   w3fs21.f
79                   w3locdat.f
80                   w3fi71.f
81                   baciof.f
82                   bacio.v1.3.c
83                   errexit.c
84                 )
86 install(
87         TARGETS ${FOLDER_COMPILE_TARGET}
88         EXPORT ${EXPORT_NAME}Targets
89         RUNTIME DESTINATION bin/
90         ARCHIVE DESTINATION lib/
91         LIBRARY DESTINATION lib/
92         )