else()
add_library(libgromacs ${LIBGROMACS_SOURCES})
endif()
+
+if (TARGET Heffte::Heffte)
+ target_link_libraries(libgromacs PRIVATE Heffte::Heffte)
+endif()
+
+if (GMX_SYCL_HIPSYCL AND GMX_HIPSYCL_HAVE_HIP_TARGET)
+ target_link_libraries(libgromacs PUBLIC roc::rocfft)
+endif()
+
target_link_libraries(libgromacs PRIVATE $<BUILD_INTERFACE:common>)
# As long as the libgromacs target has source files that reference headers from
# modules that don't provide CMake targets, libgromacs needs to use `src/`
add_subdirectory(fileio)
add_subdirectory(selection)
-# Suppress a warning about our abuse of t_inputrec
-gmx_source_file_warning_suppression(mdtypes/inputrec.cpp -Wno-class-memaccess HAS_NO_CLASS_MEMACCESS)
-
# Handle the object libraries that contain the source file
# dependencies that need special handling because they are generated
# or external code.
gmx_manage_lmfit()
target_link_libraries(libgromacs PRIVATE lmfit)
+gmx_manage_muparser()
+target_link_libraries(libgromacs PRIVATE muparser)
# Make sure we fix "everything" found by compilers that support that
gmx_warn_on_everything(libgromacs)