-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
28 lines (19 loc) · 1.09 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
cmake_minimum_required(VERSION 2.8)
project (wukong)
set(WUKONG_ROOT "/home/yhzhang/Wukong/graph-query" )
ADD_DEFINITIONS( -std=c++11)
#set(CMAKE_CXX_COMPILER /usr/bin/mpic++)
set(CMAKE_CXX_COMPILER /home/yhzhang/install/openmpi-1.6.5-install/bin/mpic++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
set(BOOST_LIB "${WUKONG_ROOT}/deps/boost_1_58_0-install/lib" )
include_directories(deps/boost_1_58_0-install/include)
include_directories(include)
include_directories(utils)
file(GLOB SOURCES "src/*.cpp")
add_executable(wukong ${SOURCES} "src/main.cpp")
target_link_libraries( wukong zmq rt ibverbs tbb ${BOOST_LIB}/libboost_mpi.a ${BOOST_LIB}/libboost_serialization.a)
# add_executable(wukong_test ${SOURCES} "test/test_rdma.cpp")
# target_link_libraries( wukong_test zmq rt ibverbs tbb ${BOOST_ROOT}/lib/libboost_mpi.a ${BOOST_ROOT}/lib/libboost_serialization.a)
# add_executable(wukong_zmq ${SOURCES} "test/main_zmq.cpp")
# target_link_libraries( wukong_zmq zmq rt tbb ${BOOST_LIB}/libboost_mpi.a ${BOOST_LIB}/libboost_serialization.a)
# target_compile_definitions(wukong_zmq PRIVATE USE_ZEROMQ=1 )