Jak pozwolić cmake znaleźć CUDA

Próbuję zbudowaćten projekt, który ma CUDA jako zależność. Ale skrypt cmake nie może znaleźć instalacji CUDA w systemie:

cls ~/workspace/gpucluster/cluster/build $ cmake ..
-- The C compiler identification is GNU 4.7.1
-- The CXX compiler identification is GNU 4.7.1
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake/Modules/FindCUDA.cmake:488 (message):
  Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
  CMakeLists.txt:20 (find_package)

- Konfiguracja niekompletna, wystąpiły błędy!

Próbowałem dodać go jako zmienną środowiskową do.bashrc, bez skutku:

export CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-5.5

Jak jaSpecify CUDA_TOOLKIT_ROOT_DIR poprawnie?

questionAnswers(5)

yourAnswerToTheQuestion