diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-29 19:31:38 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-16 23:28:59 +0000 |
commit | 43f5269f842cbdc585226eea20e48d19253f61e7 (patch) | |
tree | bc8182dca0da02bf0d03658d4627cad1dcbc416e /src/rpc/CMakeLists.txt | |
parent | move connection_basic and network_throttle from src/p2p to epee (diff) | |
download | monero-43f5269f842cbdc585226eea20e48d19253f61e7.tar.xz |
Wallets now do not depend on the daemon rpc lib
The shared RPC code is now moved off into a separate lib
Diffstat (limited to 'src/rpc/CMakeLists.txt')
-rw-r--r-- | src/rpc/CMakeLists.txt | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/rpc/CMakeLists.txt b/src/rpc/CMakeLists.txt index 652a03f44..748c6b8c1 100644 --- a/src/rpc/CMakeLists.txt +++ b/src/rpc/CMakeLists.txt @@ -26,9 +26,11 @@ # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +set(rpc_base_sources + rpc_args.cpp) + set(rpc_sources core_rpc_server.cpp - rpc_args.cpp instanciations) set(daemon_messages_sources @@ -40,9 +42,11 @@ set(daemon_rpc_server_sources zmq_server.cpp) -set(rpc_headers +set(rpc_base_headers rpc_args.h) +set(rpc_headers) + set(daemon_rpc_server_headers) @@ -70,6 +74,11 @@ monero_private_headers(daemon_rpc_server ${daemon_rpc_server_private_headers}) +monero_add_library(rpc_base + ${rpc_base_sources} + ${rpc_base_headers} + ${rpc_base_private_headers}) + monero_add_library(rpc ${rpc_sources} ${rpc_headers} @@ -86,8 +95,18 @@ monero_add_library(daemon_rpc_server ${daemon_rpc_server_private_headers}) +target_link_libraries(rpc_base + PUBLIC + common + epee + ${Boost_REGEX_LIBRARY} + ${Boost_THREAD_LIBRARY} + PRIVATE + ${EXTRA_LIBRARIES}) + target_link_libraries(rpc PUBLIC + rpc_base common cryptonote_core cryptonote_protocol |