summaryrefslogtreecommitdiffstats
path: root/common/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'common/CMakeLists.txt')
-rw-r--r--common/CMakeLists.txt38
1 files changed, 22 insertions, 16 deletions
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
index f6847a7..2ece210 100644
--- a/common/CMakeLists.txt
+++ b/common/CMakeLists.txt
@@ -1,19 +1,6 @@
1include_directories(${CMAKE_CURRENT_BINARY_DIR})
2
1project(akonadi2common) 3project(akonadi2common)
2generate_flatbuffers(
3 commands/commandcompletion
4 commands/createentity
5 commands/deleteentity
6 commands/fetchentity
7 commands/handshake
8 commands/modifyentity
9 commands/revisionupdate
10 commands/synchronize
11 commands/notification
12 domain/event
13 entity
14 metadata
15 queuedcommand
16)
17 4
18if (STORAGE_unqlite) 5if (STORAGE_unqlite)
19 add_definitions(-DUNQLITE_ENABLE_THREADS -fpermissive) 6 add_definitions(-DUNQLITE_ENABLE_THREADS -fpermissive)
@@ -41,8 +28,27 @@ set(command_SRCS
41 ${storage_SRCS}) 28 ${storage_SRCS})
42 29
43add_library(${PROJECT_NAME} SHARED ${command_SRCS}) 30add_library(${PROJECT_NAME} SHARED ${command_SRCS})
31
32generate_flatbuffers(
33 ${PROJECT_NAME}
34
35 commands/commandcompletion
36 commands/createentity
37 commands/deleteentity
38 commands/fetchentity
39 commands/handshake
40 commands/modifyentity
41 commands/revisionupdate
42 commands/synchronize
43 commands/notification
44 domain/event
45 entity
46 metadata
47 queuedcommand
48)
49
44generate_export_header(${PROJECT_NAME} BASE_NAME Akonadi2Common EXPORT_FILE_NAME akonadi2common_export.h) 50generate_export_header(${PROJECT_NAME} BASE_NAME Akonadi2Common EXPORT_FILE_NAME akonadi2common_export.h)
45SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) 51SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)
46qt5_use_modules(${PROJECT_NAME} Network) 52qt5_use_modules(${PROJECT_NAME} Network)
47target_link_libraries(${PROJECT_NAME} ${storage_LIBS} akonadi2async) 53target_link_libraries(${PROJECT_NAME} ${storage_LIBS} KF5::Async)
48install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 54install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})