SHARE
TWEET

CMakeLists.txt fuer NVidia CUDA GdI3-P5

a guest Jan 23rd, 2012 20 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # CudaCluster main cmake file
  2. CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
  3.  
  4. # cluster environment using cuda
  5. PROJECT(Praktikum5)
  6.  
  7. #------------------------------------------------------------------------------
  8. # options and flags
  9. #------------------------------------------------------------------------------
  10. # Set options
  11. SET(CMAKE_VERBOSE_MAKEFILE off)
  12. SET(CMAKE_BUILD_TYPE "Release")
  13.  
  14. SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g")
  15. SET(CMAKE_CXX_FLAGS_RELEASE "-O3")
  16. SET(CMAKE_CXX_FLAGS_DEBUG  "-O0 -g")
  17. SET(HEADER ../Fasta.h ../Matrix.h ../MIcomputation.h ../oclutil.h ../SequenceSet.h)
  18. SET(SOURCE ../Fasta.cpp ../pr5.cpp ../SequenceSet.cpp ../MIcomputation.cpp ../oclutil.cpp)
  19.  
  20. # Global include path
  21. FIND_PACKAGE(CUDA)
  22. find_library_local_first(CUDA_OPENCL_LIBRARY OpenCL "\"OpenCL\" library")
  23.  
  24. #------------------------------------------------------------------------------
  25. # options and flags
  26. #------------------------------------------------------------------------------
  27. CUDA_ADD_EXECUTABLE(Praktikum5 ${HEADER} ${SOURCE})
  28. TARGET_LINK_LIBRARIES(Praktikum5 ${CUDA_OPENCL_LIBRARY})
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top