CMakeLists.txt 2.05 KB
Newer Older
1
2
########### next target ###############

3
set(kerfuffle_SRCS
4
    archiveformat.cpp
5
    archive_kerfuffle.cpp
6
    archiveinterface.cpp
7
    extractionsettingspage.cpp
8
    generalsettingspage.cpp
9
    previewsettingspage.cpp
10
    settingsdialog.cpp
11
    settingspage.cpp
12
    jobs.cpp
13
14
    adddialog.cpp
    compressionoptionswidget.cpp
15
16
    createdialog.cpp
    extractiondialog.cpp
Ragnar Thomsen's avatar
Ragnar Thomsen committed
17
    propertiesdialog.cpp
18
19
20
    queries.cpp
    addtoarchive.cpp
    cliinterface.cpp
Ragnar Thomsen's avatar
Ragnar Thomsen committed
21
    cliproperties.cpp
22
    mimetypes.cpp
Elvis Angelaccio's avatar
Elvis Angelaccio committed
23
    plugin.cpp
24
    pluginmanager.cpp
25
    pluginsettingspage.cpp
26
    archiveentry.cpp
27
    options.cpp
28
    qstringtokenizer.cpp
Ragnar Thomsen's avatar
Ragnar Thomsen committed
29
)
30

31
kconfig_add_kcfg_files(kerfuffle_SRCS settings.kcfgc GENERATE_MOC)
32

33
34
35
ki18n_wrap_ui(kerfuffle_SRCS
    createdialog.ui
    extractiondialog.ui
36
37
    extractionsettingspage.ui
    generalsettingspage.ui
38
    pluginsettingspage.ui
39
    previewsettingspage.ui
Ragnar Thomsen's avatar
Ragnar Thomsen committed
40
    propertiesdialog.ui
41
    compressionoptionswidget.ui
42
)
43

44
45
46
ecm_qt_declare_logging_category(kerfuffle_SRCS
                                HEADER ark_debug.h
                                IDENTIFIER ARK
Laurent Montel's avatar
Laurent Montel committed
47
                                CATEGORY_NAME ark.kerfuffle DESCRIPTION "Ark Kerfuffle" EXPORT ARK)
48

Bhushan Shah's avatar
Bhushan Shah committed
49
add_library(kerfuffle SHARED ${kerfuffle_SRCS})
Laurent Montel's avatar
Laurent Montel committed
50
generate_export_header(kerfuffle BASE_NAME kerfuffle)
51

René J.V. Bertin's avatar
René J.V. Bertin committed
52
53
54
55
56
57
58
if (APPLE)
   target_compile_definitions(kerfuffle PRIVATE -DDEPENDENCY_TOOL="otool")
   target_compile_definitions(kerfuffle PRIVATE -DDEPENDENCY_TOOL_ARGS="-L")
else()
   target_compile_definitions(kerfuffle PRIVATE -DDEPENDENCY_TOOL="ldd")
endif()

59
target_link_libraries(kerfuffle
Laurent Montel's avatar
Laurent Montel committed
60
PUBLIC
61
    KF5::Pty
Laurent Montel's avatar
Laurent Montel committed
62
    KF5::I18n
Ragnar Thomsen's avatar
Ragnar Thomsen committed
63
    KF5::WidgetsAddons
Laurent Montel's avatar
Laurent Montel committed
64
PRIVATE
65
    Qt5::Concurrent
Nicolas Fella's avatar
Nicolas Fella committed
66
    KF5::ConfigCore
67
68
    KF5::KIOCore
    KF5::KIOWidgets
69
    KF5::KIOFileWidgets
70
)
71

72
set_target_properties(kerfuffle PROPERTIES VERSION ${KERFUFFLE_VERSION_STRING} SOVERSION ${KERFUFFLE_SOVERSION})
73

74
install(TARGETS kerfuffle ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
75

76
77
install(FILES kerfufflePlugin.desktop DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR})
install(FILES ark.kcfg                DESTINATION ${KDE_INSTALL_KCFGDIR})