4 ${CMAKE_CURRENT_SOURCE_DIR}/libjpeg
5 ${CMAKE_CURRENT_SOURCE_DIR}/..
6 ${CMAKE_CURRENT_BINARY_DIR}
10 # For config-gwenview.h
12 ${CMAKE_CURRENT_BINARY_DIR}/..
16 document/abstractdocumentimpl.cpp
17 document/animateddocumentloadedimpl.cpp
19 document/documentfactory.cpp
20 document/documentloadedimpl.cpp
21 document/emptydocumentimpl.cpp
22 document/jpegdocumentloadedimpl.cpp
23 document/loadingdocumentimpl.cpp
24 document/svgdocumentloadedimpl.cpp
25 documentview/abstractdocumentviewadapter.cpp
26 documentview/documentview.cpp
27 documentview/messageviewadapter.cpp
28 documentview/imageviewadapter.cpp
29 documentview/svgviewadapter.cpp
30 abstractimageoperation.cpp
31 abstractimageviewtool.cpp
33 imagesequencecontroller.cpp
36 cropimageoperation.cpp
45 imageformats/imageformats.cpp
46 imageformats/jpegplugin.cpp
47 imageformats/jpeghandler.cpp
48 imagemetainfomodel.cpp
52 invisiblebuttongroup.cpp
53 iodevicejpegsourcemanager.cpp
55 semanticinfo/sorteddirmodel.cpp
59 preferredimagemetainfomodel.cpp
61 print/printoptionspage.cpp
65 statusbartoolbutton.cpp
66 redeyereduction/redeyereductionimageoperation.cpp
67 redeyereduction/redeyereductiontool.cpp
68 resizeimageoperation.cpp
70 thumbnailview/abstractthumbnailviewhelper.cpp
71 thumbnailview/previewitemdelegate.cpp
72 thumbnailview/thumbnailview.cpp
74 transformimageoperation.cpp
81 if (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
84 semanticinfo/abstractsemanticinfobackend.cpp
85 semanticinfo/semanticinfodirmodel.cpp
86 semanticinfo/tagitemdelegate.cpp
87 semanticinfo/tagmodel.cpp
88 semanticinfo/tagwidget.cpp
90 endif (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
92 if (GWENVIEW_SEMANTICINFO_BACKEND_FAKE)
95 semanticinfo/fakesemanticinfobackend.cpp
97 endif (GWENVIEW_SEMANTICINFO_BACKEND_FAKE)
99 if (GWENVIEW_SEMANTICINFO_BACKEND_NEPOMUK)
102 semanticinfo/nepomuksemanticinfobackend.cpp
104 endif (GWENVIEW_SEMANTICINFO_BACKEND_NEPOMUK)
106 set_source_files_properties(
109 COMPILE_FLAGS "${KDE4_ENABLE_EXCEPTIONS}"
112 kde4_add_ui_files(gwenviewlib_SRCS
114 documentview/messageview.ui
115 print/printoptionspage.ui
116 redeyereduction/redeyereductionhud.ui
119 kde4_add_kcfg_files(gwenviewlib_SRCS
122 kde4_add_library(gwenviewlib SHARED ${gwenviewlib_SRCS})
123 set_target_properties(gwenviewlib PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
125 set_target_properties( gwenviewlib PROPERTIES COMPILE_FLAGS -DJPEG_STATIC )
127 target_link_libraries(gwenviewlib
134 target_link_libraries( gwenviewlib ${EXPAT_LIBRARIES} )
137 if (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
138 target_link_libraries(gwenviewlib
142 endif (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
144 install(TARGETS gwenviewlib ${INSTALL_TARGETS_DEFAULT_ARGS})