StatePropagatorDataGpu object to manage GPU forces, positions and velocities buffers
[alexxy/gromacs.git] / src / gromacs / mdtypes / CMakeLists.txt
index 788b6cf3bcbd325af8c47f678496a36eee39e5cd..f9adf04c23b78fa5697affb9a185858a0de7bad1 100644 (file)
 # To help us fund GROMACS development, we humbly ask that you cite
 # the research papers on the package. Check out http://www.gromacs.org.
 
-file(GLOB MDTYPES_SOURCES *.cpp)
+file(GLOB MDTYPES_SOURCES
+    df_history.cpp
+    group.cpp
+    iforceprovider.cpp
+    inputrec.cpp
+    md_enums.cpp
+    observableshistory.cpp
+    state.cpp)
+
+if(GMX_USE_CUDA OR GMX_USE_OPENCL)
+    gmx_add_libgromacs_sources(
+       state_propagator_data_gpu_impl_gpu.cpp
+       )
+    if(GMX_USE_CUDA)
+        gmx_compile_cpp_as_cuda(
+            state_propagator_data_gpu_impl_gpu.cpp
+            )
+    endif()
+else()
+    gmx_add_libgromacs_sources(
+      state_propagator_data_gpu_impl.cpp
+      )
+endif()
+
+
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${MDTYPES_SOURCES} PARENT_SCOPE)
 
 if(GMX_INSTALL_LEGACY_API)