CMakeLists.txt 2.05 KB
Newer Older
1
############ subdir ###################
Laurent Montel's avatar
Laurent Montel committed
2
set(debug_file_common_SRCS)
3
4
5
6
7
8
9
ecm_qt_declare_logging_category(debug_file_common_SRCS
    HEADER keditbookmarks_debug.h
    IDENTIFIER KEDITBOOKMARKS_LOG
    CATEGORY_NAME org.kde.keditbookmarks
    DESCRIPTION "KEditBookmarks"
    EXPORT KEDITBOOKMARKS
)
Laurent Montel's avatar
Laurent Montel committed
10

Laurent Montel's avatar
Laurent Montel committed
11

12
add_subdirectory(kbookmarkmodel)
13

14
15
########### next target ###############

16
ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KEDITBOOKMARKS VERSION_HEADER keditbookmarks_version.h)
17

Laurent Montel's avatar
Laurent Montel committed
18
set(kbookmarkmerger_SRCS kbookmarkmerger.cpp ${debug_file_common_SRCS})
19

Laurent Montel's avatar
Laurent Montel committed
20
add_executable(kbookmarkmerger ${kbookmarkmerger_SRCS})
21

22
23
24
25
26
target_link_libraries(kbookmarkmerger
   KF5::KIOCore
   KF5::I18n
   KF5::Bookmarks
)
27

Laurent Montel's avatar
Laurent Montel committed
28
install(TARGETS kbookmarkmerger ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
29
30
31
32


########### next target ###############

33
set(keditbookmarks_SRCS
34
35
36
37
38
   main.cpp
   toplevel.cpp
   globalbookmarkmanager.cpp
   actionsimpl.cpp
   importers.cpp
David Faure's avatar
David Faure committed
39
40
41
   bookmarkiterator.cpp
   testlink.cpp
   favicons.cpp
42
   faviconupdater.cpp
David Faure's avatar
David Faure committed
43
44
45
46
   exporters.cpp
   bookmarkinfowidget.cpp
   kebsearchline.cpp
   bookmarklistview.cpp
Laurent Montel's avatar
Laurent Montel committed
47
   ${debug_file_common_SRCS}
Laurent Montel's avatar
Laurent Montel committed
48
   keditbookmarks.qrc
49
)
Laurent Montel's avatar
Laurent Montel committed
50
set(toplevel_xml ${CMAKE_CURRENT_BINARY_DIR}/org.kde.keditbookmarks.xml)
Laurent Montel's avatar
Laurent Montel committed
51
qt5_generate_dbus_interface( ${CMAKE_CURRENT_SOURCE_DIR}/toplevel.h org.kde.keditbookmarks.xml )
52

53
qt5_add_dbus_interface( keditbookmarks_SRCS ${toplevel_xml} toplevel_interface )
54

55
kconfig_add_kcfg_files(keditbookmarks_SRCS settings.kcfgc )
56

57
add_executable( keditbookmarks ${keditbookmarks_SRCS})
58

59
target_link_libraries(keditbookmarks kbookmarkmodel_private
60
61
62
63
64
   KF5::Parts
   KF5::Bookmarks
   KF5::WindowSystem
   KF5::IconThemes
   KF5::KIOGui)
65

Laurent Montel's avatar
Laurent Montel committed
66
install(TARGETS keditbookmarks          ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
67
68
69

########### install files ###############

Laurent Montel's avatar
Laurent Montel committed
70
71
install( FILES keditbookmarks.kcfg  DESTINATION  ${KDE_INSTALL_KCFGDIR} )
install( PROGRAMS org.kde.keditbookmarks.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
72

73
74
75
76
77
ecm_qt_install_logging_categories(
    EXPORT KEDITBOOKMARKS
    FILE keditbookmarks.categories
    DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)