CMakeLists.txt
1 # Copyright (c) 2023-present The Bitcoin Core developers 2 # Distributed under the MIT software license, see the accompanying 3 # file COPYING or https://opensource.org/license/mit/. 4 5 add_library(bitcoin_util STATIC EXCLUDE_FROM_ALL 6 asmap.cpp 7 batchpriority.cpp 8 bip32.cpp 9 bytevectorhash.cpp 10 chaintype.cpp 11 check.cpp 12 exec.cpp 13 exception.cpp 14 feefrac.cpp 15 fs.cpp 16 fs_helpers.cpp 17 hasher.cpp 18 moneystr.cpp 19 rbf.cpp 20 readwritefile.cpp 21 serfloat.cpp 22 signalinterrupt.cpp 23 sock.cpp 24 strencodings.cpp 25 string.cpp 26 syserror.cpp 27 thread.cpp 28 threadinterrupt.cpp 29 threadnames.cpp 30 time.cpp 31 tokenpipe.cpp 32 ../logging.cpp 33 ../random.cpp 34 ../randomenv.cpp 35 ../streams.cpp 36 ../support/lockedpool.cpp 37 ../sync.cpp 38 ) 39 40 target_link_libraries(bitcoin_util 41 PRIVATE 42 core_interface 43 bitcoin_clientversion 44 bitcoin_crypto 45 $<$<PLATFORM_ID:Windows>:ws2_32> 46 $<$<PLATFORM_ID:Windows>:iphlpapi> 47 $<$<PLATFORM_ID:Windows>:bcrypt> 48 )