From 65630fc680a8208c72e28eeaca46ee159d244370 Mon Sep 17 00:00:00 2001 From: farshid-cloudly Date: Wed, 7 Feb 2024 11:13:13 +0000 Subject: [PATCH] Include rpc-client source files rpc-client is a dependency of mpclient-demo --- mplane_client/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mplane_client/CMakeLists.txt b/mplane_client/CMakeLists.txt index ebf416d6..2be1aa18 100644 --- a/mplane_client/CMakeLists.txt +++ b/mplane_client/CMakeLists.txt @@ -61,7 +61,12 @@ target_link_libraries (${MPC_TESTER} ${MPC_LIBS}) file (GLOB MPCLIENT_DEMO_SOURCES example/*.cpp) add_executable (${Target_mpclient_demo} ${MPCLIENT_DEMO_SOURCES} ${MPC_IF_SRC}) -target_link_libraries (${Target_mpclient_demo} ${Target_mpclient_client} ${MPC_LIBS}) + +file (GLOB RPC_CLIENT_SOURCES test/rpc-client/*.cpp) +target_sources (${Target_mpclient_demo} PRIVATE ${RPC_CLIENT_SOURCES}) + +target_link_libraries (${Target_mpclient_demo} ${MPC_LIBS}) + # Copy test cases files when they are modified file (GLOB MPC_TESTS_CASES test/tests/cases/*)