summaryrefslogtreecommitdiffstats
path: root/src/plugins/imageformats/jpeg/CMakeLists.txt
blob: 3dfd8982c3a0ae6d634594e0b08a261ce0bd341f (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
# Generated from jpeg.pro.

qt_find_package(WrapJpeg PROVIDED_TARGETS WrapJpeg::WrapJpeg)

#####################################################################
## QJpegPlugin Plugin:
#####################################################################

qt_internal_add_plugin(QJpegPlugin
    OUTPUT_NAME qjpeg
    PLUGIN_TYPE imageformats
    SOURCES
        main.cpp main.h
        qjpeghandler.cpp qjpeghandler_p.h
    LIBRARIES
        Qt::Core
        Qt::CorePrivate
        Qt::Gui
        Qt::GuiPrivate
        WrapJpeg::WrapJpeg
)

# Fails to build on Windows with a static Qt, PCH enabled and
# the vendored libjpeg sources, due to 'boolean'
# redefinition in jmorecfg.h and rpcndr.h.
if(WIN32 AND NOT BUILD_SHARED_LIBS)
    qt_update_ignore_pch_source(QJpegPlugin "qjpeghandler.cpp")
endif()