SHARE
TWEET

CMakeLists.txt fuer AMD APP SDK - GdI3-P5

a guest Jan 23rd, 2012 17 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(BUILD_FOR_64_BITS on CACHE BOOL "Build for 64 bit platforms?")
  15.  
  16. SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g")
  17. SET(CMAKE_CXX_FLAGS_RELEASE "-O3")
  18. SET(CMAKE_CXX_FLAGS_DEBUG  "-O0 -g")
  19. SET(HEADER ../Fasta.h ../Matrix.h ../MIcomputation.h ../oclutil.h ../SequenceSet.h)
  20. SET(SOURCE ../Fasta.cpp ../pr5.cpp ../SequenceSet.cpp ../MIcomputation.cpp ../oclutil.cpp)
  21.  
  22.  
  23. if (BUILD_FOR_64_BITS)
  24.         file(TO_NATIVE_PATH "$ENV{AMDAPPSDKROOT}lib\\x86_64\\OpenCL.lib" amdlib)
  25. else (BUILD_FOR_64_BITS)
  26.         file(TO_NATIVE_PATH "$ENV{AMDAPPSDKROOT}lib\\x86\\OpenCL.lib" amdlib)
  27. endif (BUILD_FOR_64_BITS)
  28.  
  29. # Global include path
  30. INCLUDE_DIRECTORIES($ENV{AMDAPPSDKROOT}include) # insert path to intel headers
  31.  
  32.  
  33. #------------------------------------------------------------------------------
  34. # options and flags
  35. #------------------------------------------------------------------------------
  36. ADD_EXECUTABLE(Praktikum5 ${HEADER} ${SOURCE})
  37.  
  38. TARGET_LINK_LIBRARIES(Praktikum5 ${amdlib}) # insert path to intel libraries
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