-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
62 lines (50 loc) · 1.79 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
project(MinervaSegs)
include_directories(
basic
/opt/mshadow/
../LibN3L/
)
add_definitions(-DUSE_CUDA=0)
IF(CMAKE_BUILdtype MATCHES Debug)
SET( CMAKE_CXX_FLAGS "-w -msse3 -funroll-loops -O0" )
ELSE()
SET( CMAKE_CXX_FLAGS "-w -msse3 -funroll-loops -O3" )
ENDIF()
####for openblas
add_definitions(-DMSHADOW_USE_CUDA=0)
add_definitions(-DMSHADOW_USE_CBLAS=1)
add_definitions(-DMSHADOW_USE_MKL=0)
SET( CMAKE_SHARED_LINKER_FLAGS "-lm -lopenblas")
####endfor openblas
####for cuda
#add_definitions(-DMSHADOW_USE_CUDA=1)
#add_definitions(-DMSHADOW_USE_CBLAS=1)
#add_definitions(-DMSHADOW_USE_MKL=0)
#SET( CMAKE_SHARED_LINKER_FLAGS "-lm -lcudart -lcublas -lcurand" )
#include_directories(
# $(USE_CUDA_PATH)/include
#)
#LINK_DIRECTORIES($(USE_CUDA_PATH)/lib64)
####endfor cuda
#add_subdirectory(basic)
#aux_source_directory(. DIR_SRCS)
add_executable(WordDetector WordDetector.cpp)
add_executable(HWordDetector HWordDetector.cpp)
add_executable(HSWordDetector HSWordDetector.cpp)
add_executable(SparseDetector SparseDetector.cpp)
add_executable(RWordDetector RWordDetector.cpp)
add_executable(RHWordDetector RHWordDetector.cpp)
add_executable(RHSWordDetector RHSWordDetector.cpp)
add_executable(GRWordDetector GRWordDetector.cpp)
add_executable(GRHWordDetector GRHWordDetector.cpp)
add_executable(GRHSWordDetector GRHSWordDetector.cpp)
target_link_libraries(WordDetector openblas)
target_link_libraries(HWordDetector openblas)
target_link_libraries(HSWordDetector openblas)
target_link_libraries(SparseDetector openblas)
target_link_libraries(RWordDetector openblas)
target_link_libraries(RHWordDetector openblas)
target_link_libraries(RHSWordDetector openblas)
target_link_libraries(GRWordDetector openblas)
target_link_libraries(GRHWordDetector openblas)
target_link_libraries(GRHSWordDetector openblas)