diff options
author | iDunk5400 <iDunk5400@users.noreply.github.com> | 2016-11-12 19:22:19 +0100 |
---|---|---|
committer | iDunk5400 <iDunk5400@users.noreply.github.com> | 2016-11-12 19:22:19 +0100 |
commit | e1dd15b05031dd2ffe7267acab821b9c0bc97f37 (patch) | |
tree | 8ab34e79ff3a75f334e1d6c0573d172deb141a20 | |
parent | Merge pull request #1330 (diff) | |
download | monero-e1dd15b05031dd2ffe7267acab821b9c0bc97f37.tar.xz |
Don't build monero-wallet-rpc when building the GUI
Diffstat (limited to '')
-rw-r--r-- | src/wallet/CMakeLists.txt | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/src/wallet/CMakeLists.txt b/src/wallet/CMakeLists.txt index 6e087db67..bc7e5b50e 100644 --- a/src/wallet/CMakeLists.txt +++ b/src/wallet/CMakeLists.txt @@ -82,39 +82,41 @@ target_link_libraries(wallet ${EXTRA_LIBRARIES}) add_dependencies(wallet version) -set(wallet_rpc_sources - wallet_rpc_server.cpp) +if (NOT BUILD_GUI_DEPS) + set(wallet_rpc_sources + wallet_rpc_server.cpp) -set(wallet_rpc_headers) + set(wallet_rpc_headers) -set(wallet_rpc_private_headers - wallet_rpc_server.h) + set(wallet_rpc_private_headers + wallet_rpc_server.h) -monero_private_headers(wallet_rpc_server - ${wallet_rpc_private_headers}) -monero_add_executable(wallet_rpc_server - ${wallet_rpc_sources} - ${wallet_rpc_headers} - ${wallet_rpc_private_headers}) + monero_private_headers(wallet_rpc_server + ${wallet_rpc_private_headers}) + monero_add_executable(wallet_rpc_server + ${wallet_rpc_sources} + ${wallet_rpc_headers} + ${wallet_rpc_private_headers}) -target_link_libraries(wallet_rpc_server - PRIVATE - wallet - rpc - cryptonote_core - crypto - common - ${Boost_CHRONO_LIBRARY} - ${Boost_PROGRAM_OPTIONS_LIBRARY} - ${Boost_FILESYSTEM_LIBRARY} - ${Boost_THREAD_LIBRARY} - ${CMAKE_THREAD_LIBS_INIT} - ${EXTRA_LIBRARIES}) -add_dependencies(wallet_rpc_server version) -set_property(TARGET wallet_rpc_server - PROPERTY - OUTPUT_NAME "monero-wallet-rpc") -install(TARGETS wallet_rpc_server DESTINATION bin) + target_link_libraries(wallet_rpc_server + PRIVATE + wallet + rpc + cryptonote_core + crypto + common + ${Boost_CHRONO_LIBRARY} + ${Boost_PROGRAM_OPTIONS_LIBRARY} + ${Boost_FILESYSTEM_LIBRARY} + ${Boost_THREAD_LIBRARY} + ${CMAKE_THREAD_LIBS_INIT} + ${EXTRA_LIBRARIES}) + add_dependencies(wallet_rpc_server version) + set_property(TARGET wallet_rpc_server + PROPERTY + OUTPUT_NAME "monero-wallet-rpc") + install(TARGETS wallet_rpc_server DESTINATION bin) +endif() # build and install libwallet_merged only if we building for GUI |