2 ${CMAKE_CURRENT_SOURCE_DIR}/libjpeg
3 ${CMAKE_CURRENT_SOURCE_DIR}/..
4 ${CMAKE_CURRENT_BINARY_DIR}
8 # For config-gwenview.h
10 ${CMAKE_CURRENT_BINARY_DIR}/..
14 document/abstractdocumentimpl.cpp
15 document/animateddocumentloadedimpl.cpp
17 document/documentfactory.cpp
18 document/documentloadedimpl.cpp
19 document/emptydocumentimpl.cpp
20 document/jpegdocumentloadedimpl.cpp
21 document/loadingdocumentimpl.cpp
22 document/svgdocumentloadedimpl.cpp
23 documentview/abstractdocumentviewadapter.cpp
24 documentview/documentview.cpp
25 documentview/messageviewadapter.cpp
26 documentview/imageviewadapter.cpp
27 documentview/svgviewadapter.cpp
28 abstractimageoperation.cpp
29 abstractimageviewtool.cpp
32 cropimageoperation.cpp
39 imageformats/imageformats.cpp
40 imageformats/jpegplugin.cpp
41 imageformats/jpeghandler.cpp
42 imagemetainfomodel.cpp
46 invisiblebuttongroup.cpp
47 iodevicejpegsourcemanager.cpp
49 semanticinfo/sorteddirmodel.cpp
50 semanticinfo/tagitemdelegate.cpp
54 preferredimagemetainfomodel.cpp
56 print/printoptionspage.cpp
60 statusbartoolbutton.cpp
61 redeyereduction/redeyereductionimageoperation.cpp
62 redeyereduction/redeyereductiontool.cpp
63 resizeimageoperation.cpp
65 thumbnailview/abstractthumbnailviewhelper.cpp
66 thumbnailview/previewitemdelegate.cpp
67 thumbnailview/thumbnailview.cpp
68 transformimageoperation.cpp
75 if (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
78 semanticinfo/abstractsemanticinfobackend.cpp
79 semanticinfo/semanticinfodirmodel.cpp
80 semanticinfo/tagmodel.cpp
81 semanticinfo/tagwidget.cpp
83 endif (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
85 if (GWENVIEW_SEMANTICINFO_BACKEND_FAKE)
88 semanticinfo/fakesemanticinfobackend.cpp
90 endif (GWENVIEW_SEMANTICINFO_BACKEND_FAKE)
92 if (GWENVIEW_SEMANTICINFO_BACKEND_NEPOMUK)
95 semanticinfo/nepomuksemanticinfobackend.cpp
97 endif (GWENVIEW_SEMANTICINFO_BACKEND_NEPOMUK)
99 set_source_files_properties(
102 COMPILE_FLAGS "${KDE4_ENABLE_EXCEPTIONS}"
105 kde4_add_ui_files(gwenviewlib_SRCS
107 documentview/messageview.ui
108 print/printoptionspage.ui
109 redeyereduction/redeyereductionhud.ui
112 kde4_add_kcfg_files(gwenviewlib_SRCS
115 kde4_add_library(gwenviewlib SHARED ${gwenviewlib_SRCS})
116 set_target_properties(gwenviewlib PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
118 set_target_properties( gwenviewlib PROPERTIES COMPILE_FLAGS -DJPEG_STATIC )
120 target_link_libraries(gwenviewlib
127 target_link_libraries( gwenviewlib ${EXPAT_LIBRARIES} )
130 if (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
131 target_link_libraries(gwenviewlib
135 endif (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
137 install(TARGETS gwenviewlib ${INSTALL_TARGETS_DEFAULT_ARGS})