2 get_filename_component( FOLDER_COMPILE_TARGET ${CMAKE_CURRENT_SOURCE_DIR} NAME)
5 ${FOLDER_COMPILE_TARGET}
11 ${FOLDER_COMPILE_TARGET}
24 module_symbols_util.F90
29 # target_compile_options(
30 # ${FOLDER_COMPILE_TARGET}
32 # # Specific flags for this target
35 set_target_properties(
36 ${FOLDER_COMPILE_TARGET}
38 Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${FOLDER_COMPILE_TARGET}
39 EXPORT_PROPERTIES Fortran_MODULE_DIRECTORY
43 target_link_libraries( ${FOLDER_COMPILE_TARGET}
45 $<$<BOOL:${USE_MPI}>:$<TARGET_NAME_IF_EXISTS:MPI::MPI_Fortran>>
46 $<$<BOOL:${USE_OPENMP}>:$<TARGET_NAME_IF_EXISTS:OpenMP::OpenMP_Fortran>>
49 target_include_directories( ${FOLDER_COMPILE_TARGET}
51 ${CMAKE_CURRENT_SOURCE_DIR}
55 TARGETS ${FOLDER_COMPILE_TARGET}
56 EXPORT ${EXPORT_NAME}Targets
57 RUNTIME DESTINATION bin/
58 ARCHIVE DESTINATION lib/
59 LIBRARY DESTINATION lib/