Merge remote-tracking branch 'origin/release-v4.6.1'
[WRF.git] / external / io_grib2 / bacio-1.3 / CMakeLists.txt
blob28dd4afc10ebf0233775a1b61bf01b27f6c109ec
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                   bacio.v1.3.c
14                   baciof.F
15                   )
17 set_target_properties( 
18                       ${FOLDER_COMPILE_TARGET} 
19                         PROPERTIES
20                           Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${FOLDER_COMPILE_TARGET}
21                           EXPORT_PROPERTIES        Fortran_MODULE_DIRECTORY
22                       )
24 install(
25         TARGETS ${FOLDER_COMPILE_TARGET}
26         EXPORT  ${EXPORT_NAME}Targets
27         RUNTIME DESTINATION bin/
28         ARCHIVE DESTINATION lib/
29         LIBRARY DESTINATION lib/
30         )