summaryrefslogtreecommitdiffstats
path: root/plugins/file/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-07-04 10:44:21 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-07-04 10:44:21 +0200
commit1d2da63717567300491fb97b1408f3f3a05c1dbd (patch)
tree431c455e17da6279974a087903024bccdb905800 /plugins/file/CMakeLists.txt
parentf64aa111c417caf00f53ec3876cd9c9c938501a1 (diff)
downloaduca-1d2da63717567300491fb97b1408f3f3a05c1dbd.tar.gz
uca-1d2da63717567300491fb97b1408f3f3a05c1dbd.tar.bz2
uca-1d2da63717567300491fb97b1408f3f3a05c1dbd.tar.xz
uca-1d2da63717567300491fb97b1408f3f3a05c1dbd.zip
Add TIFF file based camera
Diffstat (limited to 'plugins/file/CMakeLists.txt')
-rw-r--r--plugins/file/CMakeLists.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/file/CMakeLists.txt b/plugins/file/CMakeLists.txt
new file mode 100644
index 0000000..3955366
--- /dev/null
+++ b/plugins/file/CMakeLists.txt
@@ -0,0 +1,26 @@
+cmake_minimum_required(VERSION 2.6)
+project(ucafile C)
+
+find_package(TIFF)
+
+if (TIFF_FOUND)
+ set(UCA_CAMERA_NAME "file")
+ set(PLUGIN_VERSION "0.0.1")
+ set(PLUGIN_REVISION "0")
+ set(PLUGIN_REQUIRES "libuca >= 1.2.0")
+ set(PLUGIN_SUMMARY "File plugin for libuca")
+
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../package-plugin.sh.in
+ ${CMAKE_CURRENT_BINARY_DIR}/../../package-plugin-${UCA_CAMERA_NAME}.sh)
+
+ include_directories(${TIFF_INCLUDE_DIRS})
+
+ add_library(ucafile SHARED
+ uca-file-camera.c)
+
+ target_link_libraries(ucafile uca ${UCA_DEPS} ${TIFF_LIBRARIES})
+
+ install(TARGETS ucafile
+ LIBRARY DESTINATION ${UCA_PLUGINDIR}
+ COMPONENT ${UCA_CAMERA_NAME})
+endif ()