test: Add build system support and a main function for unit tests
[quassel.git] / src / test / main / CMakeLists.txt
diff --git a/src/test/main/CMakeLists.txt b/src/test/main/CMakeLists.txt
new file mode 100644 (file)
index 0000000..6d6993f
--- /dev/null
@@ -0,0 +1,13 @@
+quassel_add_module(Test::Main EXPORT NOINSTALL)
+
+target_sources(${TARGET} PRIVATE
+    main.cpp
+    testglobal.h
+)
+
+target_link_libraries(${TARGET}
+    PUBLIC
+        GTest::GTest
+        Qt5::Core
+        Quassel::Common
+)