SHOW:
|
|
- or go back to the newest paste.
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?") |
14 | + | |
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}) |