1 get_filename_component( FOLDER_COMPILE_TARGET ${CMAKE_CURRENT_SOURCE_DIR} NAME )
3 add_library( ${FOLDER_COMPILE_TARGET} STATIC )
6 ${FOLDER_COMPILE_TARGET}
8 Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${FOLDER_COMPILE_TARGET}
12 target_compile_definitions(
13 ${FOLDER_COMPILE_TARGET}
17 # target_link_libraries( ${FOLDER_COMPILE_TARGET}
20 # $<$<BOOL:${USE_MPI}>:$<TARGET_NAME_IF_EXISTS:MPI::MPI_Fortran>>
21 # $<$<BOOL:${USE_OPENMP}>:$<TARGET_NAME_IF_EXISTS:OpenMP::OpenMP_Fortran>>
22 # $<TARGET_NAME_IF_EXISTS:Jasper::Jasper>
26 ${FOLDER_COMPILE_TARGET}
86 TARGETS ${FOLDER_COMPILE_TARGET}
87 EXPORT ${EXPORT_NAME}Targets
88 RUNTIME DESTINATION bin/
89 ARCHIVE DESTINATION lib/
90 LIBRARY DESTINATION lib/