CMakeLists.txt 3.3 KB
Newer Older
1 2
set(AKABEI_CORE_SRCS
akabeibackend.cpp
3
akabeiconfig.cpp
4
akabeidatabase.cpp
Lukas Appelhans's avatar
Lukas Appelhans committed
5 6
akabeidebug.cpp
akabeidelta.cpp
7
akabeierror.cpp
8
akabeigroup.cpp
9
akabeihelpers.cpp
10
akabeihook.cpp
11 12 13
akabeioperation.cpp
akabeioperationrunner.cpp
akabeipackage.cpp
14
akabeilog.cpp
15
akabeiquery.cpp
16
akabeicache.cpp
Dario Freddi's avatar
Dario Freddi committed
17 18
akabeirunnerrunnable_p.cpp
akabeivalidatorrunnable_p.cpp
19
md5.c
20
AbstractSQLiteConnection.cpp
21
SQLiteConnection.cpp
22
PolKitSQLiteConnection.cpp
23
libarchive++/archivehandler.cpp
24
libarchive++/polkitarchivehandler.cpp
25
)
26

27
set(AKABEI_OPERATION_SRCS
28
operations/akabeiplainhookoperation.cpp
Lukas Appelhans's avatar
Lukas Appelhans committed
29
operations/akabeiplainreinstalloperation.cpp
Lukas Appelhans's avatar
Lukas Appelhans committed
30
operations/akabeipolkitreinstalloperation.cpp
31
operations/akabeiplaininstalloperation.cpp
Dario Freddi's avatar
Dario Freddi committed
32
operations/akabeiplainremoveoperation.cpp
Lukas Appelhans's avatar
Lukas Appelhans committed
33
operations/akabeipolkitremoveoperation.cpp
Dario Freddi's avatar
Dario Freddi committed
34
operations/akabeiplainscriptletoperation.cpp
Dario Freddi's avatar
Dario Freddi committed
35
operations/akabeiplainupgradeoperation.cpp
Lukas Appelhans's avatar
Lukas Appelhans committed
36 37
operations/akabeipolkitupgradeoperation.cpp
operations/akabeipolkitinstalloperation.cpp
38
operations/akabeiplainreplaceoperation.cpp
39 40
operations/akabeipolkitreplaceoperation.cpp
operations/akabeioperationutils.cpp
41 42
)

Lukas Appelhans's avatar
Lukas Appelhans committed
43 44 45 46
set(AKABEI_CORE_HDRS
akabeibackend.h
akabeiconfig.h
akabeidatabase.h
Lukas Appelhans's avatar
Lukas Appelhans committed
47 48
akabeidebug.h
akabeidelta.h
Lukas Appelhans's avatar
Lukas Appelhans committed
49 50 51
akabeierror.h
akabeigroup.h
akabeihelpers.h
52
akabeihook.h
Lukas Appelhans's avatar
Lukas Appelhans committed
53 54 55
akabeioperation.h
akabeioperationrunner.h
akabeipackage.h
56
akabeilog.h
57
akabeiquery.h
58
akabeicache.h
Lukas Appelhans's avatar
Lukas Appelhans committed
59
akabeicore_global.h
60
AbstractSQLiteConnection.h
61
SQLiteConnection.h
62
PolKitSQLiteConnection.h
63
md5.h
64 65 66
)

set(AKABEI_ARCHIVE_HDRS
67
libarchive++/archivehandler.h
68
libarchive++/archiveentry.h
69
libarchive++/archiveoperations.h
70
libarchive++/polkitarchivehandler.h
71
)
72

73
set(AKABEI_OPERATION_HDRS
Lukas Appelhans's avatar
Lukas Appelhans committed
74
operations/akabeiplainreinstalloperation.h
Lukas Appelhans's avatar
Lukas Appelhans committed
75
operations/akabeipolkitreinstalloperation.h
76
operations/akabeiplaininstalloperation.h
Lukas Appelhans's avatar
Lukas Appelhans committed
77
operations/akabeipolkitinstalloperation.h
78
operations/akabeiplainremoveoperation.h
Lukas Appelhans's avatar
Lukas Appelhans committed
79
operations/akabeipolkitremoveoperation.h
80 81
operations/akabeiplainscriptletoperation.h
operations/akabeiplainupgradeoperation.h
Lukas Appelhans's avatar
Lukas Appelhans committed
82
operations/akabeipolkitupgradeoperation.h
83 84
operations/akabeiplainreplaceoperation.h
operations/akabeipolkitreplaceoperation.h
Lukas Appelhans's avatar
Lukas Appelhans committed
85
operations/akabeiplainhookoperation.h
86
operations/akabeioperationutils.h
87 88
)

Lukas Appelhans's avatar
Lukas Appelhans committed
89
add_library(akabeicore SHARED ${AKABEI_CORE_SRCS} ${AKABEI_OPERATION_SRCS} ${AKABEI_MISSING_MOCS})
90

Fabian Kosmale's avatar
Fabian Kosmale committed
91 92 93 94 95 96 97
target_include_directories(akabeicore PUBLIC
    ${CMAKE_CURRENT_BINARY_DIR}/lib
    ${CMAKE_CURRENT_BINARY_DIR}/tools/polkit-helper
    ${CMAKE_SOURCE_DIR}/lib
    ${CMAKE_SOURCE_DIR}/tools/polkit-helper
)

Luca Giambonini's avatar
Luca Giambonini committed
98 99
set_target_properties(akabeicore PROPERTIES AUTOMOC TRUE)

100
set_target_properties(akabeicore PROPERTIES VERSION ${MAJOR_AKABEI_VERSION}.${MINOR_AKABEI_VERSION}.${PATCH_AKABEI_VERSION}
101
                                            SOVERSION ${MAJOR_AKABEI_VERSION})
102

Luca Giambonini's avatar
Luca Giambonini committed
103 104 105 106 107 108
target_link_libraries(akabeicore Qt5::Core
                                 Qt5::DBus
                                 Qt5::Concurrent
                                 ${LIBARCHIVE_LIBRARY}
                                 ${SQLITE_LIBRARIES}
                                 ${POLKITQT-1_LIBRARIES})
109

110
install(TARGETS akabeicore DESTINATION ${LIB_INSTALL_DIR})
Lukas Appelhans's avatar
Lukas Appelhans committed
111
install(FILES ${AKABEI_CORE_HDRS} DESTINATION ${INCLUDES_INSTALL_DIR})
112
install(FILES ${AKABEI_OPERATION_HDRS} DESTINATION ${INCLUDES_INSTALL_DIR}/operations)
113
install(FILES ${AKABEI_ARCHIVE_HDRS} DESTINATION ${INCLUDES_INSTALL_DIR}/libarchive++)
114

Lukas Appelhans's avatar
Fixes  
Lukas Appelhans committed
115
add_subdirectory(benchmarks)
Lukas Appelhans's avatar
Lukas Appelhans committed
116 117

add_subdirectory(tests)