1 add_executable( geogrid )
3 add_subdirectory( src )
8 # Just dump everything in here
9 Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/modules/geogrid/
14 # Control dependencies and linking
15 target_link_libraries(
18 $<$<BOOL:${USE_MPI}>:$<TARGET_NAME_IF_EXISTS:MPI::MPI_Fortran>>
19 $<$<BOOL:${USE_OPENMP}>:$<TARGET_NAME_IF_EXISTS:OpenMP::OpenMP_Fortran>>
20 $<$<BOOL:${USE_OPENMP}>:$<TARGET_NAME_IF_EXISTS:OpenMP::OpenMP_C>>
29 target_compile_definitions(
35 target_include_directories(
38 ${netCDF_INCLUDE_DIRS}
41 # Add these to the export targets
44 EXPORT ${EXPORT_NAME}Targets
45 RUNTIME DESTINATION bin/
46 ARCHIVE DESTINATION lib/
47 LIBRARY DESTINATION lib/