Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show All 9 Lines | |||||
set(CMAKE_CXX_VISIBILITY_PRESET hidden) | set(CMAKE_CXX_VISIBILITY_PRESET hidden) | ||||
option(BUILD_BITCOIN_WALLET "Activate the wallet functionality" ON) | option(BUILD_BITCOIN_WALLET "Activate the wallet functionality" ON) | ||||
option(BUILD_BITCOIN_ZMQ "Activate the ZeroMQ functionalities" ON) | option(BUILD_BITCOIN_ZMQ "Activate the ZeroMQ functionalities" ON) | ||||
option(BUILD_BITCOIN_SEEDER "Build bitcoin-seeder" ON) | option(BUILD_BITCOIN_SEEDER "Build bitcoin-seeder" ON) | ||||
option(BUILD_BITCOIN_CLI "Build bitcoin-cli" ON) | option(BUILD_BITCOIN_CLI "Build bitcoin-cli" ON) | ||||
option(BUILD_BITCOIN_TX "Build bitcoin-tx" ON) | option(BUILD_BITCOIN_TX "Build bitcoin-tx" ON) | ||||
option(BUILD_BITCOIN_QT "Build bitcoin-qt" ON) | option(BUILD_BITCOIN_QT "Build bitcoin-qt" ON) | ||||
option(BUILD_BITCOIN_BENCH "Build bitcoin-bench benchmarking suite" ON) | |||||
schancel: This really shouldn't be a cmake option. It should just be a non-default target that gets… | |||||
# Ensure that WINDRES_PREPROC is enabled when using windres. | # Ensure that WINDRES_PREPROC is enabled when using windres. | ||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||||
list(APPEND CMAKE_RC_FLAGS "-DWINDRES_PREPROC") | list(APPEND CMAKE_RC_FLAGS "-DWINDRES_PREPROC") | ||||
endif() | endif() | ||||
# Enable warning | # Enable warning | ||||
include(AddCompilerFlags) | include(AddCompilerFlags) | ||||
▲ Show 20 Lines • Show All 258 Lines • ▼ Show 20 Lines | |||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||||
target_sources(bitcoind PRIVATE bitcoind-res.rc) | target_sources(bitcoind PRIVATE bitcoind-res.rc) | ||||
endif() | endif() | ||||
# Bitcoin-qt | # Bitcoin-qt | ||||
if(BUILD_BITCOIN_QT) | if(BUILD_BITCOIN_QT) | ||||
add_subdirectory(qt) | add_subdirectory(qt) | ||||
endif() | endif() | ||||
# Benchmark suite | |||||
if(BUILD_BITCOIN_BENCH) | |||||
add_subdirectory(bench) | |||||
endif() |
This really shouldn't be a cmake option. It should just be a non-default target that gets built when you run bench target.