~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kcontrol/kfontinst/dbus/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/lib
 
2
                    ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}
 
3
                    ${KDEBASE_WORKSPACE_SOURCE_DIR}/kcontrol/fonts)
 
4
add_definitions(${QT_DEFINITIONS})
 
5
 
 
6
set(fontinst_bin_SRCS FcConfig.cpp FontInst.cpp Folder.cpp Main.cpp Utils.cpp ${libkfontinstdbusiface_SRCS} )
 
7
set(fontinst_helper_SRCS FcConfig.cpp Helper.cpp Folder.cpp Utils.cpp ${libkfontinstdbusiface_SRCS} )
 
8
 
 
9
# qt4_generate_dbus_interface(FontInst.h org.kde.fontinst.xml)
 
10
qt4_add_dbus_adaptor(fontinst_bin_SRCS org.kde.fontinst.xml FontInst.h KFI::FontInst)
 
11
# qt4_add_dbus_interface(fontinst_bin_SRCS org.kde.fontinst.xml FontinstIface)
 
12
 
 
13
kde4_add_executable(fontinst_bin ${fontinst_bin_SRCS})
 
14
kde4_add_executable(fontinst_helper ${fontinst_helper_SRCS})
 
15
 
 
16
set_target_properties(fontinst_bin PROPERTIES OUTPUT_NAME fontinst)
 
17
target_link_libraries(fontinst_bin ${KDE4_KDECORE_LIBS}
 
18
                      ${QT_QTDBUS_LIBRARY} ${QT_QTXML_LIBRARY} ${FONTCONFIG_LIBRARIES} kfontinst)
 
19
 
 
20
set_target_properties(fontinst_helper PROPERTIES OUTPUT_NAME fontinst_helper)
 
21
target_link_libraries(fontinst_helper ${KDE4_KDECORE_LIBS}
 
22
                      ${QT_QTDBUS_LIBRARY} ${QT_QTXML_LIBRARY} ${FONTCONFIG_LIBRARIES} kfontinst)
 
23
 
 
24
install(TARGETS fontinst_bin DESTINATION ${LIBEXEC_INSTALL_DIR} )
 
25
install(TARGETS fontinst_helper DESTINATION ${LIBEXEC_INSTALL_DIR} )
 
26
install(PROGRAMS fontinst_x11 DESTINATION ${LIBEXEC_INSTALL_DIR})
 
27
 
 
28
configure_file(org.kde.fontinst.service.cmake ${CMAKE_CURRENT_BINARY_DIR}/session/org.kde.fontinst.service)
 
29
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/session/org.kde.fontinst.service DESTINATION ${DBUS_SERVICES_INSTALL_DIR} )
 
30
 
 
31
kde4_install_auth_helper_files(fontinst_helper org.kde.fontinst root)
 
32
kde4_install_auth_actions(org.kde.fontinst fontinst.actions)