[CMake] Linking CUDA and C++

Vineel Raja rajavineel7 at gmail.com
Sat Jun 21 02:46:55 EDT 2014


Hello, I am developing a plug-in for opendTect software (C++). In the
computation part of the plug-in there is a scope for parallel programming.
So, I wanted to use CUDA for this computation. I have written a separate
compute.cu file for this. Now how should I  compile and link these two
files so that one object file is generated. What are the changes that I
should make to the given CMakeLists.txt file.
Thanks in advance

-- 
Aggidi Vineel Raja
3rd Year Undergraduate
Department of Mathematics
IIT Kharagpur, 721302
+91 9474824849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140621/d903aeb8/attachment.html>


More information about the CMake mailing list