summaryrefslogtreecommitdiffstats
path: root/plugins/file/CMakeLists.txt
blob: 68741685a9ab10dc63cf810c4d6e877daf557ae8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 2.6)
project(ucafile C)

find_package(TIFF)

if (TIFF_FOUND)
    set(UCA_CAMERA_NAME "file")
    set(PLUGIN_VERSION ${UCA_VERSION_STRING})
    set(PLUGIN_REVISION ${CPACK_PACKAGE_RELEASE})
    set(PLUGIN_REQUIRES "libuca = ${UCA_VERSION_STRING}")
    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 ${CMAKE_INSTALL_PLUGINDIR}
            RUNTIME DESTINATION ${CMAKE_INSTALL_PLUGINDIR}
            COMPONENT ${UCA_CAMERA_NAME})
endif ()