-file(GLOB MDLIB_SOURCES *.c *.cpp)
+
+file(GLOB MDLIB_SOURCES *.c *.cpp nbnxn_kernels/*.c)
if(GMX_FFT_FFTPACK)
list(APPEND MDLIB_SOURCES ${CMAKE_SOURCE_DIR}/src/external/fftpack/fftpack.c)
endif()
if (BUILD_TESTING)
add_subdirectory(tests)
endif (BUILD_TESTING)
+
+if(GMX_GPU)
+ add_subdirectory(nbnxn_cuda)
+ set(GMX_GPU_LIBRARIES ${GMX_GPU_LIBRARIES} nbnxn_cuda PARENT_SCOPE)
+endif()