blob: 25ea667db926b92b24c8500a4b89590bb57d2f8e (
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
59
60
61
62
63
64
65
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
project(akonadi2common)
if (STORAGE_unqlite)
add_definitions(-DUNQLITE_ENABLE_THREADS -fpermissive)
set(storage_SRCS unqlite/unqlite.c storage_unqlite.cpp)
else (STORAGE_unqlite)
set(storage_SRCS storage_lmdb.cpp)
set(storage_LIBS lmdb)
endif (STORAGE_unqlite)
set(command_SRCS
definitions.cpp
log.cpp
entitybuffer.cpp
entitystorage.cpp
clientapi.cpp
facadefactory.cpp
commands.cpp
facade.cpp
pipeline.cpp
propertymapper.cpp
domainadaptor.cpp
resource.cpp
genericresource.cpp
resourceaccess.cpp
listener.cpp
storage_common.cpp
threadboundary.cpp
messagequeue.cpp
index.cpp
resourcefacade.cpp
resourceconfig.cpp
domain/applicationdomaintype.cpp
domain/event.cpp
domain/mail.cpp
${storage_SRCS})
add_library(${PROJECT_NAME} SHARED ${command_SRCS})
generate_flatbuffers(
${PROJECT_NAME}
commands/commandcompletion
commands/createentity
commands/deleteentity
commands/fetchentity
commands/handshake
commands/modifyentity
commands/revisionupdate
commands/synchronize
commands/notification
domain/event
domain/mail
entity
metadata
queuedcommand
)
generate_export_header(${PROJECT_NAME} BASE_NAME Akonadi2Common EXPORT_FILE_NAME akonadi2common_export.h)
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)
qt5_use_modules(${PROJECT_NAME} Network)
target_link_libraries(${PROJECT_NAME} ${storage_LIBS} KF5::Async)
install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|