blob: e0bfec5144ab65b872f60f73da048db3447691b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
set(CMAKE_CXX_VISIBILITY_PRESET default)
find_package(Qt5 COMPONENTS REQUIRED Core Gui)
find_package(KF5Mime "4.87.0" CONFIG REQUIRED)
find_package(QGpgme CONFIG REQUIRED)
find_package(KF5Codecs CONFIG REQUIRED)
# target_include_directories does not handle empty include paths
include_directories(${GPGME_INCLUDES})
set(libmimetreeparser_SRCS
objecttreeparser.cpp
#Bodyformatter
applicationpgpencrypted.cpp
applicationpkcs7mime.cpp
mailman.cpp
multipartalternative.cpp
multipartencrypted.cpp
multipartmixed.cpp
multipartsigned.cpp
textplain.cpp
texthtml.cpp
utils.cpp
bodypartformatter_impl.cpp
#Interfaces
bodypartformatter.cpp
bodypart.cpp
#bodypartformatter.cpp
bodypartformatterbasefactory.cpp
cryptohelper.cpp
nodehelper.cpp
messagepart.cpp
partnodebodypart.cpp
#Stuff
mimetreeparser_debug.cpp
util.cpp
)
add_library(kube_otp ${libmimetreeparser_SRCS})
target_link_libraries(kube_otp
PUBLIC
KF5::Mime
)
target_link_libraries(kube_otp
PRIVATE
QGpgme
KF5::Codecs
Qt5::Gui
)
install(TARGETS kube_otp DESTINATION ${LIB_INSTALL_DIR})
add_subdirectory(autotests)
add_subdirectory(tests)
|