fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / kde3support / CMakeLists.txt
blobc8b7e7e61cf5a9b9abcb8884de1bf5fb07663f10
2 project(kde3support)
3 kde4_no_enable_final(kde3support)
5 # inter-subdir dependencies
6 include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/kdecore ${CMAKE_CURRENT_SOURCE_DIR}/kdeui
7 ${CMAKE_CURRENT_SOURCE_DIR}/kio/kfile
8 ${CMAKE_SOURCE_DIR}/solid )
9 #${CMAKE_CURRENT_SOURCE_DIR}/kparts ${CMAKE_CURRENT_SOURCE_DIR}/kutils )
11 # all dependent libs
12 include_directories( ${KDE4_KPARTS_INCLUDES} )
14 add_definitions( -DQT3_SUPPORT -DKDE3_SUPPORT -DIN_KDE3_SUPPORT)
16 if(UNIX)
17    add_subdirectory( kunittest )
18    add_subdirectory( tests )
19 endif(UNIX)
22 ########### next target ###############
24 set(kde3support_LIB_SRCS
25   kdecore/k3mimesourcefactory.cpp
26   kdecore/k3multipledrag.cpp
27   kdecore/k3rfcdate.cpp
28   kdecore/k3staticdeleter.cpp
29   kdecore/k3tempfile.cpp
30   kdecore/k3urldrag.cpp
31   #kdeui/qxembed.cpp
32   kdeui/k3aboutapplication.cpp
33   kdeui/k3aboutdialog.cpp
34   kdeui/k3activelabel.cpp
35   kdeui/k3dockwidget.cpp
36   kdeui/k3dockwidget_private.cpp
37   kdeui/k3iconview.cpp
38   kdeui/k3iconviewsearchline.cpp
39   kdeui/k3listbox.cpp
40   kdeui/k3listview.cpp
41   kdeui/k3listviewsearchline.cpp
42   kdeui/k3popupmenu.cpp
43   kdeui/k3textedit.cpp
44   kdeui/k3colordrag.cpp
45   kdeui/k3syntaxhighlighter.cpp
46   kdeui/k3wizard.cpp
47   kdeui/k3spell.cpp
48   kdeui/k3spelldlg.cpp
49   kdeui/k3sconfig.cpp
50   kdeui/k3passworddialog.cpp
51   kdeui/k3command.cpp
52   kdeui/k3buttonbox.cpp
53   kdeui/k3panelapplet.cpp
54   kdeui/k3panelmenu.cpp
55   kio/k3bookmarkdrag.cpp
56   kio/kfile/k3fileview.cpp
57   kio/kfile/k3filetreeview.cpp
58   kio/kfile/k3filetreeviewitem.cpp
59   kio/kfile/kfiletreebranch.cpp
60   kparts/dockmainwindow3.cpp
63 if (UNIX)
64    set(kde3support_LIB_SRCS ${kde3support_LIB_SRCS}
65       kdecore/k3process.cpp
66       kdecore/k3processcontroller.cpp
67       kdecore/k3procio.cpp
68    )
69 endif (UNIX)
71 set(kde3ui_UI
72     kdeui/k3spellui.ui
75 kde4_add_ui_files( kde3support_LIB_SRCS ${kde3ui_UI} )
77 remove_definitions(-DQT3_SUPPORT_WARNINGS -DKDE_DEPRECATED_WARNINGS)
79 kde4_add_library(kde3support SHARED ${kde3support_LIB_SRCS})
81 target_link_libraries(kde3support  ${KDE4_KPARTS_LIBS} ${KDE4_KPTY_LIBS} ${QT_QTXML_LIBRARY} ${QT_QT3SUPPORT_LIBRARY} ${KDE4_KFILE_LIBS} ${X11_LIBRARIES})
82 target_link_libraries(kde3support  LINK_INTERFACE_LIBRARIES kio kdeui kdecore ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QT3SUPPORT_LIBRARY} )
84 set_target_properties(kde3support PROPERTIES VERSION ${GENERIC_LIB_VERSION} 
85                                              SOVERSION ${GENERIC_LIB_SOVERSION} 
86                      )
88 install(TARGETS kde3support EXPORT kdelibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
90 ########### install files ###############
92 install( FILES
93   kde3support_export.h
94   kdecore/k3mimesourcefactory.h
95   kdecore/k3multipledrag.h
96   kdecore/k3rfcdate.h
97   kdecore/k3staticdeleter.h
98   kdecore/k3sqlpropertymap.h
99   kdecore/k3tempfile.h
100   kdecore/k3urldrag.h
101   kdecore/kcalendarsystemfactory.h
102   kdecore/ksimpleconfig.h
103   kdecore/ktrader.h
104   kdeui/k3aboutapplication.h
105   kdeui/k3aboutdialog.h
106   kdeui/k3activelabel.h
107   kdeui/k3dockwidget.h
108   kdeui/k3iconviewsearchline.h
109   kdeui/k3listbox.h
110   kdeui/k3listviewsearchline.h
111   kdeui/k3popupmenu.h
112   kdeui/k3textedit.h
113   kdeui/k3colordrag.h
114   kdeui/k3syntaxhighlighter.h
115   kdeui/k3wizard.h
116   kdeui/k3spell.h
117   kdeui/k3spelldlg.h
118   kdeui/k3sconfig.h
119   kdeui/k3passworddialog.h
120   kdeui/k3command.h
121   kdeui/k3listview.h
122   kdeui/k3iconview.h
123   kdeui/k3buttonbox.h
124   kdeui/k3panelapplet.h
125   kdeui/k3panelmenu.h
126   kio/k3bookmarkdrag.h
127   kio/kio/skipdlg.h
128   kio/kio/passdlg.h
129   kio/kfile/kurlrequesterdlg.h
130   kio/kfile/kfilesharedlg.h
131   kio/kfile/kpropsdlg.h
132   kio/kfile/k3fileview.h
133   kio/kfile/k3filetreeview.h
134   kio/kfile/k3filetreeviewitem.h
135   kio/kfile/kfiletreebranch.h
136   kparts/dockmainwindow3.h
137   kdeui/kactivelabel.h
138   kdeui/kstdaccel.h
139   kdeui/kstdaction.h
140   kdeui/kstdguiitem.h
141   DESTINATION  ${INCLUDE_INSTALL_DIR} COMPONENT Devel )
143 if (UNIX)
144    install( FILES
145       kdecore/k3process.h
146       kdecore/k3processcontroller.h
147       kdecore/k3procio.h
148       DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel )
149 endif (UNIX)
151 install( FILES
152     kio/kio/renamedlg.h
153     DESTINATION  ${INCLUDE_INSTALL_DIR}/kio COMPONENT Devel )