mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
1b8d4a6f1e54 Merge bitcoin-core/libmultiprocess#194: mpgen: Work around c++20 / capnproto 0.8 incompatibility f1fad396bf5f Merge bitcoin-core/libmultiprocess#195: ci: Add openbsd eed42f210d17 ci: Bump all tasks to actions/checkout@v5 486a510bbeff ci: Remove ancient and problematic -lstdc++fs in mpexample dd40897efe79 Add missing thread include 98414e7d2867 ci: Add openbsd dc3ba2204606 cmake, doc: Add check for CVE-2022-46149 cb170d4913a2 Merge bitcoin-core/libmultiprocess#193: build: require CapnProto 0.7.0 or better 8ceeaa6ae401 ci: Add olddeps job to test old dependencies versions c4cb758eccb5 mpgen: Work around c++20 / capnproto 0.8 incompatibility 30930dff7b06 build: require CapnProto 0.7.0 or better git-subtree-dir: src/ipc/libmultiprocess git-subtree-split: 1b8d4a6f1e54b92708bd2ad627ec6d440a1daf3d
29 lines
1.1 KiB
CMake
29 lines
1.1 KiB
CMake
# Copyright (c) The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
include(${PROJECT_SOURCE_DIR}/cmake/TargetCapnpSources.cmake)
|
|
|
|
add_executable(mpcalculator
|
|
calculator.cpp
|
|
)
|
|
target_capnp_sources(mpcalculator ${CMAKE_CURRENT_SOURCE_DIR} init.capnp calculator.capnp printer.capnp)
|
|
target_include_directories(mpcalculator PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
target_link_libraries(mpcalculator PRIVATE Threads::Threads)
|
|
|
|
add_executable(mpprinter
|
|
printer.cpp
|
|
)
|
|
target_capnp_sources(mpprinter ${CMAKE_CURRENT_SOURCE_DIR} init.capnp calculator.capnp printer.capnp)
|
|
target_include_directories(mpprinter PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
target_link_libraries(mpprinter PRIVATE Threads::Threads)
|
|
|
|
add_executable(mpexample
|
|
example.cpp
|
|
)
|
|
target_capnp_sources(mpexample ${CMAKE_CURRENT_SOURCE_DIR} init.capnp calculator.capnp printer.capnp)
|
|
target_include_directories(mpexample PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
target_link_libraries(mpexample PRIVATE Threads::Threads)
|
|
|
|
add_custom_target(mpexamples DEPENDS mpexample mpcalculator mpprinter)
|