-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (23 loc) · 1.13 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
cmake_minimum_required(VERSION 3.10)
project(rdma_server C CXX)
include(FindPkgConfig)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/")
pkg_search_module(LIBCRAFTER REQUIRED crafter)
pkg_search_module(SPDLOG REQUIRED spdlog)
include_directories(. ./common)
add_library(server-lib STATIC
common/common.h
connection_manager/Connection.h
ib_networking/IBNetworking.h ib_networking/IBNetworking.cpp
buffer_manager/BufferManager.h buffer_manager/BufferManager.cpp
queue_manager/QueueManager.h queue_manager/QueueManager.cpp
connection_manager/ConnectionManager.h connection_manager/ConnectionManager.cpp
serializer/Serializer.h serializer/Serializer.cpp
packet_crafter/PacketCrafter.h packet_crafter/PacketCrafter.cpp
socket_connection/SocketConnection.h socket_connection/SocketConnection.cpp
server/Server.h server/Server.cpp
)
target_link_libraries(server-lib ibverbs pthread boost_system numa ${SPDLOG_LIBRARIES} ${LIBCRAFTER_LIBRARIES})
add_executable(server server.cpp)
target_link_libraries(server server-lib)