diff options
Diffstat (limited to 'common/CMakeLists.txt')
-rw-r--r-- | common/CMakeLists.txt | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 2fef5f6..a2fd57a 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt | |||
@@ -2,20 +2,22 @@ project(akonadi2common) | |||
2 | generate_flatbuffers(commands/handshake | 2 | generate_flatbuffers(commands/handshake |
3 | commands/revisionupdate) | 3 | commands/revisionupdate) |
4 | 4 | ||
5 | if (STORAGE_KYOTO) | 5 | if (STORAGE_unqlite) |
6 | set(storage_SRCS storage_kyoto.cpp) | 6 | add_definitions(-DUNQLITE_ENABLE_THREADS) |
7 | set(storage_LIBS kyotocabinet) | 7 | file(GLOB storage_SRCS unqlite/*c) |
8 | else (STORAGE_KYOTO) | 8 | set(storage_SRCS ${storage_SRCS} storage_unqlite.cpp) |
9 | else (STORAGE_unqlite) | ||
9 | set(storage_SRCS storage_lmdb.cpp) | 10 | set(storage_SRCS storage_lmdb.cpp) |
10 | set(storage_LIBS lmdb) | 11 | set(storage_LIBS lmdb) |
11 | endif (STORAGE_KYOTO) | 12 | endif (STORAGE_unqlite) |
12 | 13 | ||
13 | set(command_SRCS | 14 | set(command_SRCS |
14 | commands.cpp | 15 | commands.cpp |
15 | console.cpp | 16 | console.cpp |
16 | storage_common.cpp | 17 | storage_common.cpp |
17 | ${storage_SRCS}) | 18 | ${storage_SRCS}) |
18 | 19 | ||
20 | message("We have: ${storage_SRCS}") | ||
19 | add_library(${PROJECT_NAME} ${command_SRCS}) | 21 | add_library(${PROJECT_NAME} ${command_SRCS}) |
20 | SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) | 22 | SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) |
21 | qt5_use_modules(${PROJECT_NAME} Widgets) | 23 | qt5_use_modules(${PROJECT_NAME} Widgets) |