summaryrefslogtreecommitdiffstats
path: root/src/libzmq-test.cmake
blob: bcd5c150f1bcee5dc1315545a8d0209d2b20e5cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This file is part of MXE. See LICENSE.md for licensing information.

# partial module - included by src/cmake/CMakeLists.txt

set(TGT test-${PKG}-cmake)

enable_language(C)
add_executable(${TGT} ${CMAKE_CURRENT_LIST_DIR}/${PKG}-test.c)

find_package(ZeroMQ REQUIRED)

if (BUILD_STATIC)
  target_link_libraries(${TGT} libzmq-static)
else ()
  target_link_libraries(${TGT} libzmq)
endif ()

install(TARGETS ${TGT} DESTINATION bin)