summaryrefslogtreecommitdiffstats
path: root/doc/zmq-ctrl/cpp/test/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-02-12 10:21:01 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-02-12 10:21:01 +0100
commita84687a3e0776f47deec0ddb7b8f2a47eb0ea877 (patch)
treea84b5657ab8a0334de6366b50cf96bc857f2e20c /doc/zmq-ctrl/cpp/test/CMakeLists.txt
parent1f7576701b54bf83d600780483017457841e830b (diff)
parent277d29a529c37a8fe59883291e43db8ff8831b22 (diff)
downloaddabmod-a84687a3e0776f47deec0ddb7b8f2a47eb0ea877.tar.gz
dabmod-a84687a3e0776f47deec0ddb7b8f2a47eb0ea877.tar.bz2
dabmod-a84687a3e0776f47deec0ddb7b8f2a47eb0ea877.zip
Merge raspine/master, with ZMQ Remote-Control code
This adds zmq rc fixes and an example tool to interface to it
Diffstat (limited to 'doc/zmq-ctrl/cpp/test/CMakeLists.txt')
-rwxr-xr-xdoc/zmq-ctrl/cpp/test/CMakeLists.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/zmq-ctrl/cpp/test/CMakeLists.txt b/doc/zmq-ctrl/cpp/test/CMakeLists.txt
new file mode 100755
index 0000000..4b877d0
--- /dev/null
+++ b/doc/zmq-ctrl/cpp/test/CMakeLists.txt
@@ -0,0 +1,31 @@
+cmake_minimum_required(VERSION 2.6)
+project (ctrl_test)
+
+ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK -D_SCL_SECURE_NO_WARNINGS)
+
+set(BOOST_LIBRARYDIR)
+set(BOOST_INCLUDEDIR)
+set(BOOST_USE_MULTITHREADED ON)
+set(BOOST_USE_STATIC_LIBS ON)
+set(BOOST_MIN_VERSION 1.55)
+
+find_package( Boost ${BOOST_MIN_VERSION} REQUIRED
+ unit_test_framework
+ system
+ )
+
+set(PROJECT_TEST_SRCS
+${CMAKE_CURRENT_SOURCE_DIR}/ctrl_test.cpp
+${CMAKE_CURRENT_SOURCE_DIR}/../OdrModCtrl.cpp
+)
+
+include_directories( ${PROJECT_SOURCE_DIR}/../ )
+link_directories (/usr/local/lib)
+add_executable(${PROJECT_NAME} ${PROJECT_TEST_SRCS})
+
+target_link_libraries(${PROJECT_NAME}
+ zmq
+ ${Boost_LIBRARIES}
+ )
+
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")