Files
thehub/libs/p2p/CMakeLists.txt
tomFlowee 805c2d9893 Split out the too-big logging section 'p2pnet'.
This introduces the spv-sync debug section as a child of the p2p lib
logging section.
2023-04-01 22:58:11 +02:00

69 lines
2.0 KiB
CMake

# This file is part of the Flowee project
# Copyright (C) 2020-2023 Tom Zander <tom@flowwe.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
include_directories(${LIBP2P_INCLUDES} ${CMAKE_BINARY_DIR}/include)
add_library(flowee_p2p STATIC
Action.cpp
BlockHeader.cpp
Blockchain.cpp
ConnectionManager.cpp
CleanPeersAction.cpp
DataListenerInterface.cpp
DownloadManager.cpp
FillAddressDBAction.cpp
HeaderSyncInterface.cpp
InventoryItem.cpp
NotificationCenter.cpp
NotificationListener.cpp
P2PNetInterface.cpp
Peer.cpp
PeerAddressDB.cpp
PrivacySegment.cpp
SyncChainAction.cpp
SyncSPVAction.cpp
BroadcastTxData.cpp
)
target_link_libraries(flowee_p2p flowee_networkmanager)
# logging defaults:
# 2020 is the main logging section in this lib (Logger::P2PNet)
# 2025: SPV sync action
add_definitions(-DLOG_DEFAULT_SECTION=2020)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libflowee_p2p.a DESTINATION lib)
install(FILES
Action.h
BlockHeader.h
Blockchain.h
ConnectionManager.h
DataListenerInterface.h
DownloadManager.h
FillAddressDBAction.h
HeaderSyncInterface.h
InventoryItem.h
NotificationCenter.h
NotificationListener.h
P2PNet.h
P2PNetInterface.h
Peer.h
PeerAddressDB.h
PrivacySegment.h
SyncChainAction.h
SyncSPVAction.h
BroadcastTxData.h
DESTINATION include/flowee/p2p)