From c866a0ea466bc38e813fe1e7608ec86a0760f07b Mon Sep 17 00:00:00 2001
From: Sergey Yakubov <sergey.yakubov@desy.de>
Date: Wed, 22 Nov 2017 17:59:02 +0100
Subject: [PATCH] initial structure

---
 worker/api/cpp/.gitignore               | 10 ++++++++++
 worker/api/cpp/CMakeLists.txt           | 20 +++++++++++++++++++
 worker/api/cpp/unittests/test-suite.cpp | 26 +++++++++++++++++++++++++
 3 files changed, 56 insertions(+)
 create mode 100644 worker/api/cpp/.gitignore
 create mode 100644 worker/api/cpp/CMakeLists.txt
 create mode 100644 worker/api/cpp/unittests/test-suite.cpp

diff --git a/worker/api/cpp/.gitignore b/worker/api/cpp/.gitignore
new file mode 100644
index 000000000..cd62d2c27
--- /dev/null
+++ b/worker/api/cpp/.gitignore
@@ -0,0 +1,10 @@
+Testing
+.cproject
+.project
+CMakeFiles
+CMakeCache.txt
+cmake_install.cmake
+.settings
+CTestTestfile.cmake
+test-HIDRA2
+Makefile
diff --git a/worker/api/cpp/CMakeLists.txt b/worker/api/cpp/CMakeLists.txt
new file mode 100644
index 000000000..0721e7583
--- /dev/null
+++ b/worker/api/cpp/CMakeLists.txt
@@ -0,0 +1,20 @@
+cmake_minimum_required(VERSION 3.5)
+set(CMAKE_CXX_STANDARD 11)
+
+project(HIDRA2)
+project(${PROJECT_NAME} C CXX)
+
+enable_testing()
+
+set(TEST_SOURCE_FILES unittests/test-suite.cpp)
+
+include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
+add_executable(test-${PROJECT_NAME} ${TEST_SOURCE_FILES})
+
+target_link_libraries(test-${PROJECT_NAME} gtest gtest_main pthread)
+
+#target_link_libraries(test-${PROJECT_NAME} cpp-producer)
+
+add_test(NAME unittests COMMAND test-${PROJECT_NAME})
+
+#astyle(test-${PROJECT_NAME} ${TEST_SOURCE_FILES})
\ No newline at end of file
diff --git a/worker/api/cpp/unittests/test-suite.cpp b/worker/api/cpp/unittests/test-suite.cpp
new file mode 100644
index 000000000..b9e99d8fe
--- /dev/null
+++ b/worker/api/cpp/unittests/test-suite.cpp
@@ -0,0 +1,26 @@
+/* 
+ * File:   TestSuite
+ * Author: yakubov
+ *
+ * Created on Nov 22, 2017, 4:44:43 PM
+ */
+
+#include <gtest/gtest.h>
+
+class TestWorkerAPI : public testing::Test {
+protected:
+
+    void SetUp() {
+        // Setup ...
+    }
+
+    void TearDown() {
+        // Teardown ...
+    }
+
+};
+
+TEST_F(TestWorkerAPI, testConnect) {
+    FAIL();
+}
+
-- 
GitLab