CMakeLists.txt 1.87 KB
Newer Older
1
2
########### next target ###############
set(kwalletmanager_SRCS 
3
4
5
    kwalletmanager.cpp
    kwalletmanagerwidget.cpp
    kwalletmanagerwidgetitem.cpp
Rafał Rzepecki's avatar
Rafał Rzepecki committed
6
    kwhexview.cpp
7
    walletcontrolwidget.cpp
8
9
10
11
12
    main.cpp
    kwalletpopup.cpp
    kwalleteditor.cpp
    kwmapeditor.cpp
    allyourbase.cpp
13
    kbetterthankdialogbase.cpp
Valentin Rusu's avatar
Valentin Rusu committed
14
    registercreateactionmethod.cpp
15
16
    applicationsmanager.cpp
    connectedapplicationstable.cpp
17
18
    connectedappmodel.cpp
    disconnectappbutton.cpp
19
20
21
    authorizedappmodel.cpp
    authorizedapplicationstable.cpp
    revokeauthbutton.cpp
22
)
23

Laurent Montel's avatar
Laurent Montel committed
24
25
26
ecm_qt_declare_logging_category(kwalletmanager_SRCS
                                HEADER kwalletmanager_debug.h
                                IDENTIFIER KWALLETMANAGER_LOG
Laurent Montel's avatar
Laurent Montel committed
27
				CATEGORY_NAME org.kde.kwalletmanager DESCRIPTION "kwalletmanager" EXPORT KWALLETMANAGER)
Laurent Montel's avatar
Laurent Montel committed
28

Teo Mrnjavac's avatar
Teo Mrnjavac committed
29
qt5_add_dbus_interface(kwalletmanager_SRCS
30
    ${KWALLET_DBUS_INTERFACES_DIR}/kf5_org.kde.KWallet.xml kwallet_interface
Teo Mrnjavac's avatar
Teo Mrnjavac committed
31
)
32

Lukáš Tinkl's avatar
Lukáš Tinkl committed
33
ki18n_wrap_ui(kwalletmanager_SRCS
Teo Mrnjavac's avatar
Teo Mrnjavac committed
34
35
36
37
38
    walletwidget.ui
    kbetterthankdialogbase.ui
    walletcontrolwidget.ui
    applicationsmanager.ui
)
39

Lukáš Tinkl's avatar
Lukáš Tinkl committed
40
41

# Sets the icon on Windows and OSX
Laurent Montel's avatar
Laurent Montel committed
42
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/*-apps-kwalletmanager.png")
Lukáš Tinkl's avatar
Lukáš Tinkl committed
43
ecm_add_app_icon(kwalletmanager_SRCS ICONS ${ICONS_SRCS})
44

45
add_executable(kwalletmanager5 ${kwalletmanager_SRCS})
46

47
target_link_libraries(kwalletmanager5
48
49
50
51
52
53
54
    Qt5::Core
    KF5::CoreAddons
    KF5::I18n
    KF5::XmlGui #KActionCollection
    KF5::ConfigWidgets
    KF5::ItemViews
    KF5::Wallet
Teo Mrnjavac's avatar
Teo Mrnjavac committed
55
56
    KF5::DBusAddons
    KF5::ConfigCore
57
    KF5::Service
58
    KF5::KIOCore
59
    KF5::KIOGui
60
    KF5::JobWidgets
61
    KF5::Archive
62
63
64
    KF5::IconThemes
    KF5::Notifications
    KF5::WindowSystem
Laurent Montel's avatar
Laurent Montel committed
65
    KF5::Crash
66
)
67

68
install(TARGETS kwalletmanager5  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
Teo Mrnjavac's avatar
Teo Mrnjavac committed
69
install(FILES kwalletmanager.rc
70
        DESTINATION ${KXMLGUI_INSTALL_DIR}/kwalletmanager5)
71

Laurent Montel's avatar
Laurent Montel committed
72
add_subdirectory(icons)