Changeset View
Changeset View
Standalone View
Standalone View
src/zmq/CMakeLists.txt
# Copyright (c) 2017 The Bitcoin developers | # Copyright (c) 2017 The Bitcoin developers | ||||
project(zmq) | project(zmq) | ||||
add_library(zmq | add_library(zmq | ||||
zmqabstractnotifier.cpp | zmqabstractnotifier.cpp | ||||
zmqnotificationinterface.cpp | zmqnotificationinterface.cpp | ||||
zmqpublishnotifier.cpp | zmqpublishnotifier.cpp | ||||
zmqrpc.cpp | zmqrpc.cpp | ||||
) | ) | ||||
find_package(ZeroMQ REQUIRED) | find_package(ZeroMQ 4.1.5 REQUIRED) | ||||
target_include_directories(zmq PRIVATE ${ZMQ_INCLUDE_DIR}) | target_link_libraries(zmq util ZeroMQ::zmq) | ||||
target_link_libraries(zmq util ${ZMQ_LIBRARY}) | |||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||||
target_compile_definitions(zmq PUBLIC ZMQ_STATIC) | target_compile_definitions(zmq PUBLIC ZMQ_STATIC) | ||||
endif() | endif() |