@@ -57,16 +57,13 @@ SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -g")
57
57
# ------------------------------------------------------------------------------
58
58
find_package (MPI REQUIRED)
59
59
include_directories (SYSTEM ${MPI_CXX_INCLUDE_PATH} )
60
- find_package (Boost REQUIRED)
61
- include_directories (${Boost_INCLUDE_DIRS} )
62
60
63
61
# find Threads------------------------------------------------------------------
64
62
set (CMAKE_THREAD_PREFER_PTHREAD ON )
65
63
find_package (Threads REQUIRED)
66
64
67
65
# find glog---------------------------------------------------------------------
68
66
include ("cmake/FindGlog.cmake" )
69
-
70
67
if (NOT GLOG_FOUND)
71
68
message (FATAL_ERROR "glog not found, please install the glog library" )
72
69
else ()
@@ -92,6 +89,12 @@ if (USE_JEMALLOC)
92
89
endif ()
93
90
endif ()
94
91
92
+ # find rdkafka---------------------------------------------------------------------
93
+ include ("cmake/FindRdkafka.cmake" )
94
+ if (NOT RDKAFKA_FOUND)
95
+ message (STATUS "rdkafka not found, build without rdkafka" )
96
+ endif ()
97
+
95
98
# ------------------------------------------------------------------------------
96
99
# generete libgrape-lite
97
100
# ------------------------------------------------------------------------------
@@ -107,7 +110,7 @@ if (JEMALLOC_FOUND)
107
110
endif ()
108
111
109
112
if (NOT GFLAGS_FOUND)
110
- message (WARNING "Disable examples because gflags not found" )
113
+ message (WARNING "Disable analytical_apps because gflags not found" )
111
114
else ()
112
115
add_executable (analytical_apps examples/analytical_apps/flags .cc
113
116
examples/analytical_apps/run_app.cc)
@@ -118,24 +121,19 @@ else ()
118
121
${GLOG_LIBRARIES} ${GFLAGS_LIBRARIES} ${CMAKE_DL_LIBS} )
119
122
endif ()
120
123
121
- if (NOT ( EXISTS ${CMAKE_SOURCE_DIR} /examples/gnn_sampler/thirdparty/cppkafka/CMakeLists.txt) )
122
- message (WARNING "Disable gnn_sampler because submodule cppkafka isn't checkout not" )
123
- elseif (NOT GFLAGS_FOUND )
124
- message (WARNING "Disable examples because gflags not found" )
124
+ if (NOT GFLAGS_FOUND )
125
+ message (WARNING "Disable gnn_sampler because gflags not found " )
126
+ elseif (NOT RDKAFKA_FOUND )
127
+ message (WARNING "Disable gnn_sampler because rdkafka not found" )
125
128
else ()
126
- set (CPPKAFKA_DISABLE_TESTS ON CACHE BOOL "Disable cppkafka tests" )
127
- set (CPPKAFKA_DISABLE_EXAMPLES ON CACHE BOOL "Disable cppkafka examples" )
128
- add_subdirectory (examples/gnn_sampler/thirdparty/cppkafka)
129
-
130
129
add_executable (gnn_sampler examples/gnn_sampler/run_sampler.cc)
131
130
set_target_properties (gnn_sampler PROPERTIES OUTPUT_NAME run_sampler)
132
131
target_include_directories (gnn_sampler PRIVATE
133
132
examples/gnn_sampler
134
133
examples/gnn_sampler/thirdparty
135
- exampler/gnn_sampler/thirdparty/cppkafka/include
136
134
${RDKAFKA_INCLUDE_DIR} )
137
- target_link_libraries (gnn_sampler grape-lite cppkafka ${MPI_CXX_LIBRARIES}
138
- ${GLOG_LIBRARIES} ${GFLAGS_LIBRARIES} ${CMAKE_DL_LIBS} ${Boost_LIBRARIES } )
135
+ target_link_libraries (gnn_sampler grape-lite ${MPI_CXX_LIBRARIES}
136
+ ${GLOG_LIBRARIES} ${GFLAGS_LIBRARIES} ${CMAKE_DL_LIBS} ${RDKAFKA_LIBRARIES } )
139
137
endif ()
140
138
141
139
# ------------------------------------------------------------------------------
0 commit comments