From 29aec734715f7c4d6b8157ac514eff4fd8dd0242 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 21 Feb 2011 15:39:14 +0100 Subject: Include config.h and test the library --- test/CMakeLists.txt | 6 ++++++ test/test.c | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 test/CMakeLists.txt create mode 100644 test/test.c (limited to 'test') 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 +#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; +} -- cgit v1.2.3