# Copyright (c) 2023-present The Limenka developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://opensource.org/license/mit/. # Wallet functionality used by limenkad and limenka-wallet executables. add_library(limenka_wallet STATIC EXCLUDE_FROM_ALL coincontrol.cpp coinselection.cpp ct.cpp context.cpp crypter.cpp db.cpp dump.cpp external_signer_scriptpubkeyman.cpp feebumper.cpp fees.cpp interfaces.cpp load.cpp migrate.cpp receive.cpp rpc/addresses.cpp rpc/ct.cpp rpc/backup.cpp rpc/coins.cpp rpc/encrypt.cpp rpc/signmessage.cpp rpc/spend.cpp rpc/transactions.cpp rpc/util.cpp rpc/wallet.cpp scriptpubkeyman.cpp spend.cpp transaction.cpp wallet.cpp walletdb.cpp walletutil.cpp ) target_link_libraries(limenka_wallet PRIVATE core_interface limenka_common univalue Boost::headers $ ) if(NOT USE_SQLITE AND NOT USE_BDB) message(FATAL_ERROR "Wallet functionality requested but no BDB or SQLite support available.") endif() if(USE_SQLITE) target_sources(limenka_wallet PRIVATE sqlite.cpp) target_link_libraries(limenka_wallet PRIVATE $ $ ) endif() if(USE_BDB) target_sources(limenka_wallet PRIVATE bdb.cpp salvage.cpp) target_link_libraries(limenka_wallet PUBLIC BerkeleyDB::BerkeleyDB) endif()