Merge remote-tracking branch 'origin/release-v4.6.1'
[WRF.git] / external / io_grib1 / grib1_util / CMakeLists.txt
blobe980da01524a783a9af516204555e82600b92f20
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                   alloc_2d.c
14                   read_grib.c
15                   write_grib.c
16                   )
19 target_include_directories( ${FOLDER_COMPILE_TARGET}
20                             PRIVATE
21                               # ${CMAKE_CURRENT_SOURCE_DIR}
22                               ${CMAKE_CURRENT_SOURCE_DIR}/../MEL_grib1
23                             )
25 install(
26         TARGETS ${FOLDER_COMPILE_TARGET}
27         EXPORT  ${EXPORT_NAME}Targets
28         RUNTIME DESTINATION bin/
29         ARCHIVE DESTINATION lib/
30         LIBRARY DESTINATION lib/
31         )