Remove individual cuda libraries
[alexxy/gromacs.git] / src / gromacs / mdlib / nbnxn_cuda / CMakeLists.txt
index 48a0712afa63f2563243dfed0dc680281bcc4d8e..2d5636b865129adf4301a6de1f7044f1ed15cc98 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2012,2013, by the GROMACS development team, led by
+# Copyright (c) 2012,2013,2014, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
 
 if(GMX_GPU)
     file(GLOB CUDA_NB_SOURCES *.cu)
-    CUDA_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
-    CUDA_ADD_LIBRARY(nbnxn_cuda STATIC ${CUDA_NB_SOURCES}
-            OPTIONS
-            RELWITHDEBINFO -g
-            DEBUG -g -D_DEBUG_=1)
-    target_link_libraries(nbnxn_cuda cuda_tools)
+    set(MDLIB_SOURCES ${MDLIB_SOURCES} ${CUDA_NB_SOURCES} PARENT_SCOPE)
 endif()