-
Roman Khlopkov authoredc0114499
CMakeLists.txt 2.48 KiB
# Core
if (CELLFRAME_MODULES MATCHES "core")
add_subdirectory(common)
add_subdirectory(app-cli)
endif()
# Chains
if (CELLFRAME_MODULES MATCHES "chains")
add_subdirectory(chain)
add_subdirectory(chain/btc_rpc)
add_subdirectory(wallet)
add_subdirectory(global-db)
endif()
# Distributed Hash Tables (DHT)
if (CELLFRAME_MODULES MATCHES "dht")
add_subdirectory(dht)
endif()
# Network
if (CELLFRAME_MODULES MATCHES "network")
add_subdirectory(mempool)
add_subdirectory(net)
add_subdirectory(net/srv)
# Stream channels
add_subdirectory(channel/chain)
add_subdirectory(channel/chain-net)
endif()
# Mining
if (CELLFRAME_MODULES MATCHES "mining")
add_subdirectory(mining)
endif()
# Network services
if (CELLFRAME_MODULES MATCHES "srv")
add_subdirectory(channel/chain-net-srv)
endif()
# Consensus type dag
if (CELLFRAME_MODULES MATCHES "cs-dag-")
add_subdirectory(type/dag)
endif()
# DAG PoA
if (CELLFRAME_MODULES MATCHES "cs-dag-poa")
add_subdirectory(consensus/dag-poa)
endif()
# DAG PoS
if (CELLFRAME_MODULES MATCHES "cs-dag-pos")
add_subdirectory(consensus/dag-pos)
endif()
# Consensus type blocks
if (CELLFRAME_MODULES MATCHES "cs-block-")
add_subdirectory(type/blocks)
endif()
# Block PoA
if (CELLFRAME_MODULES MATCHES "cs-block-poa")
add_subdirectory(consensus/block-poa)
endif()
# Block PoS
if (CELLFRAME_MODULES MATCHES "cs-block-pos")
add_subdirectory(consensus/block-pos)
endif()
# Block PoW
if (CELLFRAME_MODULES MATCHES "cs-block-pow")
add_subdirectory(consensus/block-pow)
endif()
# No consensus
if (CELLFRAME_MODULES MATCHES "cs-none")
add_subdirectory(consensus/none)
endif()
# Service App
if (CELLFRAME_MODULES MATCHES "srv-app")
add_subdirectory(service/app)
endif()
# Service App DB
if (CELLFRAME_MODULES MATCHES "srv-app-db")
add_subdirectory(service/app-db)
endif()
# Service Datum
if (CELLFRAME_MODULES MATCHES "srv-datum")
add_subdirectory(service/datum)
endif()
# Service VPN
if(LINUX)
if (CELLFRAME_MODULES MATCHES "srv-vpn")
add_subdirectory(service/vpn)
endif()
endif()
# Service eXchange
if (CELLFRAME_MODULES MATCHES "srv-xchange")
add_subdirectory(service/xchange)
endif()
# Service of delegated stake
if (CELLFRAME_MODULES MATCHES "srv-stake")
add_subdirectory(service/stake)
endif()
# Support for dynamic modules
if (CELLFRAME_MODULES MATCHES "modules-dynamic")
add_subdirectory(modules_dynamic)
endif()
# Unit tests
if( BUILD_TESTS)
add_subdirectory(test)
endif()