summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt6
-rw-r--r--test/test.c12
2 files changed, 18 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
new file mode 100644
index 0000000..f560df3
--- /dev/null
+++ b/test/CMakeLists.txt
@@ -0,0 +1,6 @@
+cmake_minimum_required(VERSION 2.8)
+
+include_directories(${CMAKE_SOURCE_DIR}/src)
+add_executable(test test.c)
+
+target_link_libraries(test uca)
diff --git a/test/test.c b/test/test.c
new file mode 100644
index 0000000..a1689ef
--- /dev/null
+++ b/test/test.c
@@ -0,0 +1,12 @@
+
+#include <stdio.h>
+#include "uca.h"
+
+int main(int argc, char *argv[])
+{
+ struct uca_t *uca = uca_init();
+ if (uca == NULL) {
+ printf("Couldn't find a camera\n");
+ }
+ return 0;
+}