1 add_executable( ungrib )
2 add_executable( g1print )
3 add_executable( g2print )
6 add_subdirectory( src )
11 # Just dump everything in here
12 Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/ungrib/
16 set_target_properties(
19 # Just dump everything in here
20 Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/ungrib/
24 set_target_properties(
27 # Just dump everything in here
28 Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/ungrib/
32 set_target_properties(
35 # Just dump everything in here
36 Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/ungrib/
40 # Control dependencies and linking
41 target_link_libraries(
52 target_link_libraries(
58 target_link_libraries(
70 target_include_directories(
73 $<TARGET_PROPERTY:g2,Fortran_MODULE_DIRECTORY>
74 $<TARGET_PROPERTY:w3,Fortran_MODULE_DIRECTORY>
78 target_include_directories(
81 $<TARGET_PROPERTY:g2,Fortran_MODULE_DIRECTORY>
82 $<TARGET_PROPERTY:w3,Fortran_MODULE_DIRECTORY>
84 # $<$<BOOL:${USE_MPI}>:$<TARGET_NAME_IF_EXISTS:MPI::MPI_Fortran>>
85 # $<$<BOOL:${USE_OPENMP}>:$<TARGET_NAME_IF_EXISTS:OpenMP::OpenMP_Fortran>>
86 # ${netCDF_INCLUDE_DIRS}
89 # Add these to the export targets
91 TARGETS ungrib g1print g2print pgu
92 EXPORT ${EXPORT_NAME}Targets
93 RUNTIME DESTINATION bin/
94 ARCHIVE DESTINATION lib/
95 LIBRARY DESTINATION lib/