summaryrefslogtreecommitdiffstats
path: root/common/CMakeLists.txt
blob: 2fef5f617c6bb395fe0bdc45410f1a84c65ad505 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
project(akonadi2common)
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
   storage_common.cpp
   ${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})