add more spacing
[personal-kdebase.git] / workspace / kmenuedit / CMakeLists.txt
blob077f9018ed4d673f4f2849ec5e17bb26cdc0acdd
1 add_subdirectory( pixmaps ) 
3 add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
5 set(kmenueditcommon_STAT_SRCS preferencesdlg.cpp klinespellchecking.cpp basictab.cpp treeview.cpp kmenuedit.cpp menufile.cpp menuinfo.cpp )
6 if(NOT WIN32)
7 set(kmenueditcommon_STAT_SRCS ${kmenueditcommon_STAT_SRCS} khotkeys.cpp)
8 endif(NOT WIN32)
9 ########### next target ###############
11 qt4_add_dbus_adaptor( kmenueditcommon_STAT_SRCS org.kde.kmenuedit.xml kmenuedit.h KMenuEdit)
13 if(NOT WIN32)
14 qt4_add_dbus_interface(
15     kmenueditcommon_STAT_SRCS
16     ${CMAKE_CURRENT_BINARY_DIR}/../khotkeys/app/org.kde.khotkeys.xml
17     khotkeys_interface)
18 endif(NOT WIN32)
20 set(kmenuedit_KDEINIT_SRCS main.cpp ${kmenueditcommon_STAT_SRCS})
22 kde4_add_kdeinit_executable( kmenuedit ${kmenuedit_KDEINIT_SRCS})
24 target_link_libraries(kdeinit_kmenuedit  ${KDE4_KDE3SUPPORT_LIBS} ${QT_QTXML_LIBRARY}
27 install(TARGETS kdeinit_kmenuedit  DESTINATION ${LIB_INSTALL_DIR} )
29 target_link_libraries( kmenuedit kdeinit_kmenuedit )
30 install(TARGETS kmenuedit ${INSTALL_TARGETS_DEFAULT_ARGS})
32 ########### install files ###############
34 install( FILES kmenuedit.desktop  DESTINATION  ${XDG_APPS_INSTALL_DIR} )
35 install( FILES kmenueditui.rc  DESTINATION  ${DATA_INSTALL_DIR}/kmenuedit )
37 if(NOT WIN32)
38 add_dependencies(kdeinit_kmenuedit kded_khotkeys)
39 endif(NOT WIN32)
41 kde4_install_icons( ${ICON_INSTALL_DIR}  )