blob: 1ebb1b69ccc074f98041a66cdb142e99c047c6f5 (
plain)
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
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)
PROJECT(UHD_RPCLIB CXX)
SET(RPCLIB_DEFAULT_BUFFER_SIZE "1024 << 10" CACHE STRING "Default buffer size")
SET(RPCLIB_VERISION_MAJOR ${rpclib_major_version})
SET(RPCLIB_VERSION_MINOR ${rpclib_minor_version})
SET(RPCLIB_VERSION_PATCH ${rpclib_patch_version})
CONFIGURE_FILE(
${"${CMAKE_CURRENT_SOURCE_DIR}/include/rpc/version.h.in"}
${"${CMAKE_CURRENT_BINARY_DIR}/version.h"})
CONFIGURE_FILE(
${"${CMAKE_CURRENT_SOURCE_DIR}/include/rpc/config.h.in"}
${"${CMAKE_CURRENT_BINARY_DIR}/config.h"})
INCLUDE_DIRECTORIES(include)
INCLUDE_DIRECTORIES(include/rpc)
ADD_LIBRARY(uhd_rpclib OBJECT
lib/rpc/dispatcher.cc
lib/rpc/server.cc
lib/rpc/client.cc
lib/rpc/this_handler.cc
lib/rpc/this_session.cc
lib/rpc/this_server.cc
lib/rpc/rpc_error.cc
lib/rpc/detail/server_session.cc
lib/rpc/detail/response.cc
lib/rpc/detail/client_error.cc
)
SET_PROPERTY(TARGET uhd_rpclib PROPERTY POSITION_INDEPENDENT_CODE ON)
|