Merge remote-tracking branch 'origin/release-v4.6.1'
[WRF.git] / external / io_grib1 / WGRIB / CMakeLists.txt
blob4af43a5c122b24bf65339204225b1bf6e22d31b3
1 # WRF CMake Build
3 get_filename_component( FOLDER_COMPILE_TARGET ${CMAKE_CURRENT_SOURCE_DIR} NAME)
5 add_library(
6             ${FOLDER_COMPILE_TARGET}
7               STATIC
8               )
10 target_sources(
11                 ${FOLDER_COMPILE_TARGET}
12                 PRIVATE
13                   # wgrib_main.c # Driver
14                   seekgrib.c
15                   ibm2flt.c
16                   readgrib.c
17                   intpower.c
18                   cnames.c
19                   BDSunpk.c
20                   flt2ieee.c
21                   wrtieee.c
22                   levels.c
23                   PDStimes.c
24                   missing.c
25                   nceptable_reanal.c
26                   nceptable_opn.c
27                   ensemble.c
28                   ombtable.c
29                   ec_ext.c
30                   gribtable.c
31                   gds_grid.c
32                   PDS_date.c
33                   ectable_128.c
34                   ectable_129.c
35                   ectable_130.c
36                   ectable_131.c
37                   ectable_140.c
38                   ectable_150.c
39                   ectable_151.c
40                   ectable_160.c
41                   ectable_170.c
42                   ectable_180.c
43                   nceptab_129.c
44                   dwdtable_002.c
45                   dwdtable_201.c
46                   dwdtable_202.c
47                   dwdtable_203.c
48                   cptectable_254.c
49                   nceptab_130.c
50                   nceptab_131.c
51                   )
53 install(
54         TARGETS ${FOLDER_COMPILE_TARGET}
55         EXPORT  ${EXPORT_NAME}Targets
56         RUNTIME DESTINATION bin/
57         ARCHIVE DESTINATION lib/
58         LIBRARY DESTINATION lib/
59         )