summaryrefslogtreecommitdiffstats
path: root/src/plugins/imageformats/tiff/CMakeLists.txt
blob: bc852254bf97eeab9ad07151b646f1b315f16cd8 (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
28
29
30
31
32
33
34
35
# Generated from tiff.pro.

#####################################################################
## qtiff Plugin:
#####################################################################

# special case begin
# Protect against case when ZLIB is found via QtGui in a static build,
# which means that we can't do a qt_find_package() here due to CMake
# complaining about not being able to make the ZLIB target global,
# because ZLIB was found in the QtGui directory scope (root level) and
# not in this directory scope.
if(BUILD_SHARED_LIBS)
    qt_find_package(ZLIB PROVIDED_TARGETS ZLIB::ZLIB)
endif()
# special case end

qt_add_plugin(qtiff
    TYPE imageformats
    CLASS_NAME QTiffPlugin
    SOURCES
        main.cpp
        qtiffhandler.cpp qtiffhandler_p.h
    LIBRARIES
        TIFF::TIFF
        ZLIB::ZLIB # special case
    PUBLIC_LIBRARIES
        Qt::Core
        Qt::Gui
        TIFF::TIFF # special case
)

#### Keys ignored in scope 1:.:.:tiff.pro:<TRUE>:
# OTHER_FILES = "tiff.json"
# QT_FOR_CONFIG = "imageformats-private"