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