CMake: include RPC when building GUI deps

release-v0.4.0.1
anonimal 7 years ago
parent 74b699beda
commit a3ea62f209

@ -88,43 +88,40 @@ target_link_libraries(wallet
PRIVATE PRIVATE
${EXTRA_LIBRARIES}) ${EXTRA_LIBRARIES})
if (NOT BUILD_GUI_DEPS) set(wallet_rpc_sources
set(wallet_rpc_sources wallet_rpc_server.cpp)
wallet_rpc_server.cpp)
set(wallet_rpc_headers)
set(wallet_rpc_headers)
set(wallet_rpc_private_headers
set(wallet_rpc_private_headers wallet_rpc_server.h)
wallet_rpc_server.h)
monero_private_headers(wallet_rpc_server
monero_private_headers(wallet_rpc_server ${wallet_rpc_private_headers})
${wallet_rpc_private_headers}) monero_add_executable(wallet_rpc_server
monero_add_executable(wallet_rpc_server ${wallet_rpc_sources}
${wallet_rpc_sources} ${wallet_rpc_headers}
${wallet_rpc_headers} ${wallet_rpc_private_headers})
${wallet_rpc_private_headers})
target_link_libraries(wallet_rpc_server
target_link_libraries(wallet_rpc_server PRIVATE
PRIVATE wallet
wallet epee
epee rpc
${EPEE_READLINE} cryptonote_core
rpc cncrypto
cryptonote_core common
cncrypto version
common ${Boost_CHRONO_LIBRARY}
version ${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_CHRONO_LIBRARY} ${Boost_FILESYSTEM_LIBRARY}
${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_THREAD_LIBRARY}
${Boost_FILESYSTEM_LIBRARY} ${CMAKE_THREAD_LIBS_INIT}
${Boost_THREAD_LIBRARY} ${EXTRA_LIBRARIES})
${CMAKE_THREAD_LIBS_INIT} set_property(TARGET wallet_rpc_server
${EXTRA_LIBRARIES}) PROPERTY
set_property(TARGET wallet_rpc_server OUTPUT_NAME "monero-wallet-rpc")
PROPERTY install(TARGETS wallet_rpc_server DESTINATION bin)
OUTPUT_NAME "monero-wallet-rpc")
install(TARGETS wallet_rpc_server DESTINATION bin)
endif()
# build and install libwallet_merged only if we building for GUI # build and install libwallet_merged only if we building for GUI

Loading…
Cancel
Save