Port away from Qt3Support
[kdelibs.git] / kutils / CMakeLists.txt
blobb9b3bf8604e17e36c05a1623fccdaf0dbe1f3a51
2 project(kutils)
3 include_directories( ${KDE4_KDEUI_INCLUDES} ${KDE4_KPARTS_INCLUDES} )
5 include_directories( ${CMAKE_SOURCE_DIR}/interfaces/kregexpeditor )
7 set(ksettings_STAT_SRCS
8   ksettings/dispatcher.cpp
9   ksettings/dialog.cpp
10   ksettings/pluginpage.cpp
11   ksettings/componentsdialog.cpp
13 install( FILES
14  ksettings/dispatcher.h
15  ksettings/dialog.h
16  ksettings/pluginpage.h
17 DESTINATION  ${INCLUDE_INSTALL_DIR}/ksettings )
19 ########### next target ###############
21 set(kutils_LIB_SRCS
22 kcmoduleinfo.cpp
23 kcmoduleloader.cpp
24 kcmultidialog.cpp
25 kcmoduleproxy.cpp
26 kpluginselector.cpp
27 kcmodulecontainer.cpp
28 ksettingswidgetadaptor.cpp
29 kprintpreview.cpp
30 ${ksettings_STAT_SRCS}
34 kde4_add_library(kutils SHARED ${kutils_LIB_SRCS})
36 target_link_libraries(kutils  ${KDE4_KDEUI_LIBS} ${KDE4_KPARTS_LIBS} )
38 set_target_properties(kutils PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
39 install(TARGETS kutils
40              RUNTIME DESTINATION ${BIN_INSTALL_DIR}
41              LIBRARY DESTINATION ${LIB_INSTALL_DIR}
42              ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
45 ########### install files ###############
47 install( FILES
48  kutils_export.h
49  kcmoduleinfo.h
50  kcmoduleloader.h
51  kcmultidialog.h
52  kcmoduleproxy.h
53  kpluginselector.h
54  kcmodulecontainer.h
55  kprintpreview.h
56  DESTINATION ${INCLUDE_INSTALL_DIR})