3 get_filename_component( FOLDER_COMPILE_TARGET ${CMAKE_CURRENT_SOURCE_DIR} NAME)
6 ${FOLDER_COMPILE_TARGET}
11 ${FOLDER_COMPILE_TARGET}
25 set_target_properties(
26 ${FOLDER_COMPILE_TARGET}
28 Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${FOLDER_COMPILE_TARGET}
29 EXPORT_PROPERTIES Fortran_MODULE_DIRECTORY
33 target_link_libraries( ${FOLDER_COMPILE_TARGET}
35 $<$<BOOL:${USE_MPI}>:$<TARGET_NAME_IF_EXISTS:MPI::MPI_Fortran>>
36 $<$<BOOL:${USE_OPENMP}>:$<TARGET_NAME_IF_EXISTS:OpenMP::OpenMP_Fortran>>
40 TARGETS ${FOLDER_COMPILE_TARGET}
41 EXPORT ${EXPORT_NAME}Targets
42 RUNTIME DESTINATION bin/
43 ARCHIVE DESTINATION lib/
44 LIBRARY DESTINATION lib/