libkipi from trunk (KDE 4.3) : add support of kipi host settings "file timestamp...
[kdegraphics.git] / gwenview / lib / CMakeLists.txt
blobc5ad5ddcf9653563168d141456eda6d7b8874875
1 project(gwenviewlib)
3 include_directories(
4         ${CMAKE_CURRENT_SOURCE_DIR}/libjpeg
5         ${CMAKE_CURRENT_SOURCE_DIR}/..
6         ${CMAKE_CURRENT_BINARY_DIR}
7         ${EXIV2_INCLUDE_DIR}
8         )
10 # For config-gwenview.h
11 include_directories(
12         ${CMAKE_CURRENT_BINARY_DIR}/..
13         )
15 set(gwenviewlib_SRCS
16         document/abstractdocumentimpl.cpp
17         document/animateddocumentloadedimpl.cpp
18         document/document.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
32         imagesequence.cpp
33         imagesequencecontroller.cpp
34         archiveutils.cpp
35         cropsidebar.cpp
36         cropimageoperation.cpp
37         croptool.cpp
38         datewidget.cpp
39         expandbutton.cpp
40         exiv2imageloader.cpp
41         flowlayout.cpp
42         fullscreenbar.cpp
43         fullscreentheme.cpp
44         hudwidget.cpp
45         imageformats/imageformats.cpp
46         imageformats/jpegplugin.cpp
47         imageformats/jpeghandler.cpp
48         imagemetainfomodel.cpp
49         imagescaler.cpp
50         imageutils.cpp
51         imageview.cpp
52         invisiblebuttongroup.cpp
53         iodevicejpegsourcemanager.cpp
54         jpegcontent.cpp
55         semanticinfo/sorteddirmodel.cpp
56         memoryutils.cpp
57         mimetypeutils.cpp
58         paintutils.cpp
59         preferredimagemetainfomodel.cpp
60         print/printhelper.cpp
61         print/printoptionspage.cpp
62         slidecontainer.cpp
63         slideshow.cpp
64         scrolltool.cpp
65         statusbartoolbutton.cpp
66         redeyereduction/redeyereductionimageoperation.cpp
67         redeyereduction/redeyereductiontool.cpp
68         resizeimageoperation.cpp
69         thumbnailloadjob.cpp
70         thumbnailview/abstractthumbnailviewhelper.cpp
71         thumbnailview/previewitemdelegate.cpp
72         thumbnailview/thumbnailview.cpp
73         timeutils.cpp
74         transformimageoperation.cpp
75         urlutils.cpp
76         libjpeg/transupp.c
77         widgetfloater.cpp
78         zoomwidget.cpp
79         )
81 if (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
82         set(gwenviewlib_SRCS
83                 ${gwenviewlib_SRCS}
84                 semanticinfo/abstractsemanticinfobackend.cpp
85                 semanticinfo/semanticinfodirmodel.cpp
86                 semanticinfo/tagitemdelegate.cpp
87                 semanticinfo/tagmodel.cpp
88                 semanticinfo/tagwidget.cpp
89                 )
90 endif (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
92 if (GWENVIEW_SEMANTICINFO_BACKEND_FAKE)
93         set(gwenviewlib_SRCS
94                 ${gwenviewlib_SRCS}
95                 semanticinfo/fakesemanticinfobackend.cpp
96                 )
97 endif (GWENVIEW_SEMANTICINFO_BACKEND_FAKE)
99 if (GWENVIEW_SEMANTICINFO_BACKEND_NEPOMUK)
100         set(gwenviewlib_SRCS
101                 ${gwenviewlib_SRCS}
102                 semanticinfo/nepomuksemanticinfobackend.cpp
103                 )
104 endif (GWENVIEW_SEMANTICINFO_BACKEND_NEPOMUK)
106 set_source_files_properties(
107         exiv2imageloader.cpp
108         PROPERTIES
109         COMPILE_FLAGS "${KDE4_ENABLE_EXCEPTIONS}"
110         )
112 kde4_add_ui_files(gwenviewlib_SRCS
113         cropsidebar.ui
114         documentview/messageview.ui
115         print/printoptionspage.ui
116         redeyereduction/redeyereductionhud.ui
117         )
119 kde4_add_kcfg_files(gwenviewlib_SRCS
120         gwenviewconfig.kcfgc
121         )
122 kde4_add_library(gwenviewlib SHARED ${gwenviewlib_SRCS})
123 set_target_properties(gwenviewlib PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
124 if(WIN32)
125     set_target_properties( gwenviewlib PROPERTIES COMPILE_FLAGS -DJPEG_STATIC )
126 endif(WIN32)
127 target_link_libraries(gwenviewlib
128         ${KDE4_KFILE_LIBS}
129         ${KDE4_KIO_LIBS}
130         ${JPEG_LIBRARY}
131         ${EXIV2_LIBRARIES}
132         )
133 if( WIN32 )
134 target_link_libraries( gwenviewlib ${EXPAT_LIBRARIES} )
135 endif( WIN32 )
137 if (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
138         target_link_libraries(gwenviewlib
139                 ${NEPOMUK_LIBRARIES}
140                 ${SOPRANO_LIBRARIES}
141                 )
142 endif (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
144 install(TARGETS gwenviewlib ${INSTALL_TARGETS_DEFAULT_ARGS})