diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2017-04-03 18:49:58 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:45 -0800 |
commit | 53795c74aead4e6021bc788b788f8ed5b4a0166d (patch) | |
tree | 45e4075f3d8ffdee7dff7c72dd665f5c5b0c746c /host/lib/deps/rpc_CMakeLists.txt | |
parent | 6a12add1560545438e1bebc05efbafd05aace4f9 (diff) | |
download | uhd-53795c74aead4e6021bc788b788f8ed5b4a0166d.tar.gz uhd-53795c74aead4e6021bc788b788f8ed5b4a0166d.tar.bz2 uhd-53795c74aead4e6021bc788b788f8ed5b4a0166d.zip |
uhd: add cut-down rpclib source tree and import tool
Diffstat (limited to 'host/lib/deps/rpc_CMakeLists.txt')
-rw-r--r-- | host/lib/deps/rpc_CMakeLists.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/host/lib/deps/rpc_CMakeLists.txt b/host/lib/deps/rpc_CMakeLists.txt new file mode 100644 index 000000000..1ebb1b69c --- /dev/null +++ b/host/lib/deps/rpc_CMakeLists.txt @@ -0,0 +1,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) |