diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-21 15:39:14 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-21 15:39:14 +0100 |
commit | 29aec734715f7c4d6b8157ac514eff4fd8dd0242 (patch) | |
tree | 82131d93179d4806966d1a9d7ccd46c695fbd5ca /test | |
parent | 28619821bc90ed4c15844b2e6b6a5a2971ef5f2e (diff) | |
download | libuca-29aec734715f7c4d6b8157ac514eff4fd8dd0242.tar.gz libuca-29aec734715f7c4d6b8157ac514eff4fd8dd0242.tar.bz2 libuca-29aec734715f7c4d6b8157ac514eff4fd8dd0242.tar.xz libuca-29aec734715f7c4d6b8157ac514eff4fd8dd0242.zip |
Include config.h and test the library
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 6 | ||||
-rw-r--r-- | test/test.c | 12 |
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; +} |