3 get_filename_component( FOLDER_COMPILE_TARGET ${CMAKE_CURRENT_SOURCE_DIR} NAME)
6 ${FOLDER_COMPILE_TARGET}
11 ${FOLDER_COMPILE_TARGET}
18 module_wrfsi_static.F90
22 set_target_properties(
23 ${FOLDER_COMPILE_TARGET}
25 Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${FOLDER_COMPILE_TARGET}
26 EXPORT_PROPERTIES Fortran_MODULE_DIRECTORY
30 target_link_libraries( ${FOLDER_COMPILE_TARGET}
33 $<$<BOOL:${USE_MPI}>:$<TARGET_NAME_IF_EXISTS:MPI::MPI_Fortran>>
34 $<$<BOOL:${USE_OPENMP}>:$<TARGET_NAME_IF_EXISTS:OpenMP::OpenMP_Fortran>>
37 target_include_directories( ${FOLDER_COMPILE_TARGET}
39 ${netCDF_INCLUDE_DIRS}
40 ${CMAKE_CURRENT_SOURCE_DIR}
44 TARGETS ${FOLDER_COMPILE_TARGET}
45 EXPORT ${EXPORT_NAME}Targets
46 RUNTIME DESTINATION bin/
47 ARCHIVE DESTINATION lib/
48 LIBRARY DESTINATION lib/