summaryrefslogtreecommitdiffstats
path: root/src/cppzmq-test.cmake
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2018-03-12 16:37:34 (GMT)
committerTony Theodore <tonyt@logyst.com>2018-03-12 16:37:34 (GMT)
commit90fc2216c24ccb32a1933c17cd3df3b346c8d792 (patch)
treeda304ed78fff9b9c54f2c4d2933d0b1a73e91458 /src/cppzmq-test.cmake
parent61587920291adde7644f91adb7c41164bc30c683 (diff)
downloadmxe-90fc2216c24ccb32a1933c17cd3df3b346c8d792.zip
mxe-90fc2216c24ccb32a1933c17cd3df3b346c8d792.tar.gz
mxe-90fc2216c24ccb32a1933c17cd3df3b346c8d792.tar.bz2
add libzmq and cppzmq
Diffstat (limited to 'src/cppzmq-test.cmake')
-rw-r--r--src/cppzmq-test.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cppzmq-test.cmake b/src/cppzmq-test.cmake
new file mode 100644
index 0000000..accbf84
--- /dev/null
+++ b/src/cppzmq-test.cmake
@@ -0,0 +1,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(CXX)
+add_executable(${TGT} ${CMAKE_CURRENT_LIST_DIR}/${PKG}-test.cpp)
+
+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)