revert nonfunctional old_battery_percent
[kdebase.git] / apps / kinfocenter / CMakeLists.txt
blobf15c5b56bc1feb8f7c2ef6fd31d1ae738dc065f5
1 add_subdirectory( about ) 
3 add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
5 set(kinfocenter_SRCS
6    main.cpp 
7    toplevel.cpp 
8    indexwidget.cpp 
9    helpwidget.cpp 
10    dockcontainer.cpp 
11    aboutwidget.cpp 
12    quickhelp.cpp 
13    moduletreeview.cpp 
14    moduleiconview.cpp 
15    moduleIface.cpp 
16    global.cpp 
17    modules.cpp 
18    proxywidget.cpp 
19    kcrootonly.cpp 
20    searchwidget.cpp )
22 set(kinfocenter_adaptor ${KDEBASE_APPS_SOURCE_DIR}/kinfocenter/moduleIface.h)
23 set(kinfocenter_xml ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Kinfocenter.xml)
24 ADD_CUSTOM_COMMAND(OUTPUT ${kinfocenter_xml}
25        COMMAND ${QT_DBUSCPP2XML_EXECUTABLE} ${kinfocenter_adaptor} > ${kinfocenter_xml}
26        DEPENDS ${kinfocenter_adaptor})
27 QT4_ADD_DBUS_INTERFACE( kinfocenter_SRCS ${kinfocenter_xml} kinfocenter_interface )
29 set(kinfocenter_KDEINIT_SRCS ${kinfocenter_SRCS})
31 kde4_add_kdeinit_executable( kinfocenter ${kinfocenter_KDEINIT_SRCS})
33 target_link_libraries(kdeinit_kinfocenter  ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KHTML_LIBS} ${KDE4_KUTILS_LIBS} )
35 install(TARGETS kdeinit_kinfocenter  DESTINATION ${LIB_INSTALL_DIR} )
37 target_link_libraries( kinfocenter kdeinit_kinfocenter )
38 install(TARGETS kinfocenter DESTINATION ${BIN_INSTALL_DIR})
40 ########### install files ###############
42 install( FILES kinfocenter.desktop  DESTINATION  ${XDG_APPS_INSTALL_DIR} )
43 install( FILES kinfocenterui.rc  DESTINATION  ${DATA_INSTALL_DIR}/kinfocenter )
45 kde4_install_icons( ${ICON_INSTALL_DIR}  )