From 767312e2063f4e58af3de0f27aba52de49e14295 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 5 Dec 2014 09:17:46 +0100 Subject: major reorg that puts Storage (previously Database) into common there is now a top-level tests dir, and a compile time switch for lmdb vs kyotocabinet --- common/CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'common/CMakeLists.txt') diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index d409828..9b3f777 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -2,10 +2,20 @@ project(akonadinextcommon) generate_flatbuffers(commands/handshake commands/revisionupdate) +if (STORAGE_KYOTO) + set(storage_SRCS storage_kyoto.cpp) + set(storage_LIBS kyotocabinet) +else (STORAGE_KYOTO) + set(storage_SRCS storage_lmdb.cpp) + set(storage_LIBS lmdb) +endif (STORAGE_KYOTO) + set(command_SRCS commands.cpp console.cpp - ${CMAKE_CURRENT_BINARY_DIR}/commands/handshake_generated.h) + ${storage_SRCS}) add_library(${PROJECT_NAME} ${command_SRCS}) +SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) qt5_use_modules(${PROJECT_NAME} Widgets) +target_link_libraries(${PROJECT_NAME} ${storage_LIBS}) -- cgit v1.2.3