# Copyright (c) 2017 The Bitcoin developers

project(zmq)

add_library(zmq
	zmqabstractnotifier.cpp
	zmqnotificationinterface.cpp
	zmqpublishnotifier.cpp
)

find_package(ZeroMQ REQUIRED)
target_include_directories(wallet PRIVATE ${ZMQ_INCLUDE_DIR})
target_link_libraries(zmq util ${ZMQ_LIBRARY})

# Copyright (c) 2017 The Bitcoin developers

project(zmq)

add_library(zmq
	zmqabstractnotifier.cpp
	zmqnotificationinterface.cpp
	zmqpublishnotifier.cpp
)

find_package(ZeroMQ REQUIRED)
target_include_directories(zmq PRIVATE ${ZMQ_INCLUDE_DIR})
target_link_libraries(zmq util ${ZMQ_LIBRARY})

if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
	target_compile_definitions(zmq PUBLIC ZMQ_STATIC)
endif()

Fix ZeroMQ build on windows using cmake/ninja
Fix ZeroMQ build on windows using cmake/ninja

Summary: As per title.

Test Plan:
  cmake -GNinja ..
  ninja

Reviewers: schancel, #bitcoin_abc

Reviewed By: schancel, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D833
