-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathCMakeLists.txt
49 lines (40 loc) · 1.93 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
set(PROJECT "HornetAlg")
project(${PROJECT} CXX)
cmake_minimum_required(VERSION 3.5)
FIND_PACKAGE(CUDA REQUIRED)
add_subdirectory(externals/hornet)
include_directories(include)
include_directories(externals/hornet/include)
include_directories(externals/hornet/externals/cub-1.8.0)
include_directories(externals/hornet/externals/cpp-btree-master)
include_directories(externals/hornet/externals/xlib/include)
include(externals/hornet/externals/xlib/util/CMakeLists.txt)
#-------------------------------------------------------------------------------
file(GLOB_RECURSE CU_SRCS ${PROJECT_SOURCE_DIR}/src/*)
file(GLOB_RECURSE CPP_SRCS ${PROJECT_SOURCE_DIR}/externals/xlib/src/*)
cuda_add_library(hornetAlg ${CU_SRCS})
#-------------------------------------------------------------------------------
cuda_add_executable(bfs test/BFSTest.cu)
cuda_add_executable(bfs2 test/BFSTest2.cu)
cuda_add_executable(brim test/BrimTest.cu)
cuda_add_executable(cc test/CCTest.cu)
cuda_add_executable(spmv test/SpMVTest.cu)
cuda_add_executable(sssp test/SSSPTest.cu)
cuda_add_executable(katz test/KatzTest.cu)
cuda_add_executable(dyn_katz test/KatzDynamicTest.cu)
cuda_add_executable(triangle test/TriangleTest.cu)
cuda_add_executable(triangle2 test/TriangleTest2.cu)
cuda_add_executable(clus-coeff test/ClusCoeffTest.cu)
cuda_add_executable(pr test/PageRankTest.cu)
target_link_libraries(bfs hornetAlg hornet)
target_link_libraries(bfs2 hornetAlg hornet)
target_link_libraries(brim hornetAlg hornet)
target_link_libraries(cc hornetAlg hornet)
target_link_libraries(spmv hornetAlg hornet)
target_link_libraries(sssp hornetAlg hornet)
target_link_libraries(katz hornetAlg hornet)
target_link_libraries(dyn_katz hornetAlg hornet)
target_link_libraries(triangle hornetAlg hornet)
target_link_libraries(triangle2 hornetAlg hornet)
target_link_libraries(clus-coeff hornetAlg hornet)
target_link_libraries(pr hornetAlg hornet)