Changeset View
Changeset View
Standalone View
Standalone View
src/bench/CMakeLists.txt
- This file was added.
# Copyright (c) 2018 The Bitcoin developers | |||||
project(bitcoin-bench) | |||||
include_directories(.) | |||||
add_executable(bitcoin-bench | |||||
base58.cpp | |||||
bench.cpp | |||||
bench_bitcoin.cpp | |||||
cashaddr.cpp | |||||
ccoins_caching.cpp | |||||
# checkblock.cpp TODO Fix including bench/data/*.raw files | |||||
checkqueue.cpp | |||||
crypto_hash.cpp | |||||
Examples.cpp | |||||
lockedpool.cpp | |||||
mempool_eviction.cpp | |||||
perf.cpp | |||||
prevector.cpp | |||||
rollingbloom.cpp | |||||
) | |||||
deadalnix: You may want to EXCLUDE_FROM_ALL . | |||||
target_link_libraries(bitcoin-bench common bitcoinconsensus server) | |||||
add_custom_target(check-bench | |||||
deadalnixUnsubmitted Done Inline ActionsYou should name this bench-bitcoin . Then we can have bench-all that also run the bench for secp256k1, leveldb and whatever else. The CMakeLists.txt from secp256k1 builds a bunch of benchmarks and can be used as an example for this, even though it is not perfect because the bench-secp256k1 just builds all the benchmarks but do not run them. deadalnix: You should name this bench-bitcoin . Then we can have bench-all that also run the bench for… | |||||
COMMAND | |||||
./bitcoin-bench | |||||
DEPENDS | |||||
./bitcoin-bench | |||||
deadalnixUnsubmitted Done Inline ActionsYou'd rather depend on the target than the file. deadalnix: You'd rather depend on the target than the file. | |||||
) |
You may want to EXCLUDE_FROM_ALL .