<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>

hi all,<br><br>I'm beginning to migrate all my codes to use cmake and I seek your help.&nbsp; I apologize in advance if this is a trivial question.<br><br>I'm using Ubuntu 7.10 with cmake 2.4.&nbsp; I'm trying to compile a project called vtkCuda that integrates NVidia's CUDA volume rendering techniques into vtk.&nbsp; The file repository is located at http://www.na-mic.org/svn/Slicer3/branches/cuda/Modules/VolumeRenderingCuda.&nbsp; The current CMakeLists.txt works under Windows but appears to be quite buggy under linux.&nbsp; It also has a lot of un-needed dependencies (on slicer3d); for my personal interests, I just want to get it to work with vtk.&nbsp; The only true dependency is CudaSupport, located at http://www.na-mic.org/svn/Slicer3/branches/igt_cuda_merge/Libs/CudaSupport/.<br><br>CudaSupport itself requires NVidia's CUDA library and SDK and I have managed to compile it without any major issues.&nbsp; The CMakeLists.txt for CudaSupport defined a few variables (mostly boolean) that are needed by vtkCuda's CMakeLists.txt.&nbsp; One of such variable is CUDA_SUPPORT_ENABLED; after the successful compilation of CudaSupport, during the ccmake stage of vtkCuda it complains about CUDA_SUPPORT_ENABLED is not defined.<br><br>My eventual goal is to rewite the CMakeLists.txt for vtkCuda so that is only depends on the successfufl compilation of CudaSupport (and not Slicer3D).&nbsp; My questions are:<br><br>how do I make ccmake to determine the variables set by CudaSupport, and to find CudaSupport's headers/libraries, in the CMakeLists.txt for vtkCuda?&nbsp; Or, how to I "export" the variables set by the successful compilation of Cudasupport?<br><br>ps. I'm not the developer for vtkCuda/CudaSupport, merely a user trying to use it for my own projects.<br><br>Thank you,<br><br><br><br><br><br /><hr /> <a href='' target='_new'></a></body>
</html>