forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: Add
libzmq
optional package support
- Loading branch information
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright (c) 2023 The Bitcoin Core developers | ||
# Distributed under the MIT software license, see the accompanying | ||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
add_library(bitcoin_zmq STATIC | ||
zmqabstractnotifier.cpp | ||
zmqnotificationinterface.cpp | ||
zmqpublishnotifier.cpp | ||
zmqrpc.cpp | ||
zmqutil.cpp | ||
) | ||
target_compile_definitions(bitcoin_zmq | ||
INTERFACE | ||
ENABLE_ZMQ=1 | ||
) | ||
target_link_libraries(bitcoin_zmq | ||
PRIVATE | ||
leveldb | ||
univalue | ||
$<TARGET_NAME_IF_EXISTS:libzmq> | ||
$<TARGET_NAME_IF_EXISTS:PkgConfig::libzmq> | ||
) |