diff options
Diffstat (limited to 'common/CMakeLists.txt')
-rw-r--r-- | common/CMakeLists.txt | 38 |
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 @@ | |||
1 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||
2 | |||
1 | project(akonadi2common) | 3 | project(akonadi2common) |
2 | generate_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 | ||
18 | if (STORAGE_unqlite) | 5 | if (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 | ||
43 | add_library(${PROJECT_NAME} SHARED ${command_SRCS}) | 30 | add_library(${PROJECT_NAME} SHARED ${command_SRCS}) |
31 | |||
32 | generate_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 | |||
44 | generate_export_header(${PROJECT_NAME} BASE_NAME Akonadi2Common EXPORT_FILE_NAME akonadi2common_export.h) | 50 | generate_export_header(${PROJECT_NAME} BASE_NAME Akonadi2Common EXPORT_FILE_NAME akonadi2common_export.h) |
45 | SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) | 51 | SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) |
46 | qt5_use_modules(${PROJECT_NAME} Network) | 52 | qt5_use_modules(${PROJECT_NAME} Network) |
47 | target_link_libraries(${PROJECT_NAME} ${storage_LIBS} akonadi2async) | 53 | target_link_libraries(${PROJECT_NAME} ${storage_LIBS} KF5::Async) |
48 | install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | 54 | install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) |