~ubuntu-branches/ubuntu/karmic/kdepim/karmic-backports

« back to all changes in this revision

Viewing changes to akonadi/migration/kres/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2009-07-10 06:34:50 UTC
  • mfrom: (1.1.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20090710063450-neojgew2fh0n3y0u
Tags: 4:4.2.96-0ubuntu1
* New upstream release
* Bump kde build-deps to 4.2.96

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
set(kres-migrator_srcs
2
 
    main.cpp
3
 
    kabcmigrator.cpp
4
 
    kcalmigrator.cpp
5
 
    kresmigratorbase.cpp
6
 
    infodialog.cpp
7
 
)
8
 
 
9
 
macro(add_resource_iface _kcfgFile _ifaceName _className)
10
 
  kcfg_generate_dbus_interface(${kdepim-runtime_SOURCE_DIR}/resources/${_kcfgFile} ${_ifaceName})
11
 
  string(TOLOWER ${_className} _codeFile)
12
 
  qt4_add_dbus_interface(kres-migrator_srcs
13
 
    ${CMAKE_CURRENT_BINARY_DIR}/${_ifaceName}.xml ${_codeFile} ${_className}
14
 
  )
15
 
endmacro(add_resource_iface)
16
 
 
17
 
add_resource_iface( vcard/vcardresource.kcfg org.kde.Akonadi.VCard.Settings VCardSettings )
18
 
add_resource_iface( ical/icalresource.kcfg org.kde.Akonadi.ICal.Settings ICalSettings )
19
 
add_resource_iface( birthdays/birthdaysresource.kcfg org.kde.Akonadi.Birthdays.Settings BirthdaysSettings )
20
 
 
21
 
kde4_add_app_icon(kres-migrator_srcs "${KDE4_ICON_DIR}/oxygen/*/apps/akonadi.png")
22
 
kde4_add_executable(kres-migrator ${kres-migrator_srcs})
23
 
target_link_libraries(kres-migrator
24
 
    ${KDEPIMLIBS_AKONADI_LIBS}
25
 
    ${KDE4_KRESOURCE_LIBS}
26
 
    ${KDEPIMLIBS_KABC_LIBS}
27
 
    ${KDEPIMLIBS_KCAL_LIBS}
28
 
    ${KDE4_KDECORE_LIBS}
29
 
    ${QT_QTGUI_LIBRARY}
30
 
)
31
 
 
32
 
add_subdirectory(tests)
33
 
install(TARGETS kres-migrator ${INSTALL_TARGETS_DEFAULT_ARGS})
34
 
install(FILES kres-migratorrc DESTINATION ${CONFIG_INSTALL_DIR})