diff options
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) |