fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / kutils / CMakeLists.txt
blobd899509890f73dc87cb9f5eb4cb1b5d91356b0b5
1 project(kutils)
2 include_directories( ${KDE4_KDEUI_INCLUDES} ${KDE4_KPARTS_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR})
4 set(ksettings_STAT_SRCS
5   ksettings/dispatcher.cpp
6   ksettings/dialog.cpp
7   ksettings/pluginpage.cpp
8   ksettings/componentsdialog.cpp
10 install( FILES
11  ksettings/dispatcher.h
12  ksettings/dialog.h
13  ksettings/pluginpage.h
14 DESTINATION  ${INCLUDE_INSTALL_DIR}/ksettings )
16 ########### kemoticons ################
17 add_subdirectory(kemoticons)
19 set(kemoticons_LIB_SRCS
20     kemoticons/kemoticons.cpp
21     kemoticons/kemoticonstheme.cpp
22     kemoticons/kemoticonsprovider.cpp
25 install(FILES kemoticons/kemoticonsTheme.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
27 install(FILES 
28     kemoticons/kemoticons.h 
29     kemoticons/kemoticonstheme.h 
30     kemoticons/kemoticonsprovider.h 
31     DESTINATION ${INCLUDE_INSTALL_DIR}
34 ########### next target ###############
36 set(kutils_LIB_SRCS
37 kcmoduleinfo.cpp
38 kcmoduleloader.cpp
39 kcmultidialog.cpp
40 kcmoduleproxy.cpp
41 kpluginselector.cpp
42 kcmodulecontainer.cpp
43 ksettingswidgetadaptor.cpp
44 kprintpreview.cpp
45 ${ksettings_STAT_SRCS}
46 ${kemoticons_LIB_SRCS}
50 kde4_add_library(kutils SHARED ${kutils_LIB_SRCS})
52 target_link_libraries(kutils  ${KDE4_KDEUI_LIBS} ${KDE4_KPARTS_LIBS} )
53 target_link_libraries(kutils  LINK_INTERFACE_LIBRARIES kdecore kdeui ${QT_QTGUI_LIBRARY} )
55 set_target_properties(kutils PROPERTIES
56    VERSION ${GENERIC_LIB_VERSION}
57    SOVERSION ${GENERIC_LIB_SOVERSION}
59 install(TARGETS kutils EXPORT kdelibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
61 ########### install files ###############
63 install( FILES
64  kutils_export.h
65  kcmoduleinfo.h
66  kcmoduleloader.h
67  kcmultidialog.h
68  kcmoduleproxy.h
69  kpluginselector.h
70  kcmodulecontainer.h
71  kprintpreview.h
72  DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)