forked from KnightKingWalk/KnightKing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
knightking.cmake
23 lines (19 loc) · 951 Bytes
/
knightking.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function(add_app_exec EXEC_NAME)
add_executable(${EXEC_NAME} ${EXEC_NAME}.cpp)
target_link_libraries(${EXEC_NAME} PUBLIC ${MPI_LIBRARIES})
endfunction(add_app_exec)
function(add_test_exec EXEC_NAME)
add_executable(${EXEC_NAME} ${EXEC_NAME}.cpp)
target_link_libraries(${EXEC_NAME} PUBLIC ${GTEST_LIBRARIES} ${MPI_LIBRARIES})
endfunction(add_test_exec)
function(add_tool_exec EXEC_NAME)
add_executable(${EXEC_NAME} ${EXEC_NAME}.cpp)
target_link_libraries(${EXEC_NAME} PUBLIC ${MPI_LIBRARIES})
endfunction(add_tool_exec)
foreach(prog "test_storage")
add_test("${prog}" "${KTK_RUNTIME_OUTPUT_DIRECTORY}/${prog}")
endforeach(prog)
foreach(prog "test_graph" "test_path" "test_walker" "test_bound" "test_outlier" "test_deepwalk" "test_ppr" "test_metapath" "test_node2vec")
add_test("${prog}" "./bin/${prog}")
add_test("distributed_${prog}" "mpirun" "-n" "2" "${KTK_RUNTIME_OUTPUT_DIRECTORY}/${prog}")
endforeach(prog)