summaryrefslogtreecommitdiffstats
path: root/common/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'common/CMakeLists.txt')
-rw-r--r--common/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
index 8e8af1f..a2fd57a 100644
--- a/common/CMakeLists.txt
+++ b/common/CMakeLists.txt
@@ -4,11 +4,12 @@ generate_flatbuffers(commands/handshake
4 4
5if (STORAGE_unqlite) 5if (STORAGE_unqlite)
6 add_definitions(-DUNQLITE_ENABLE_THREADS) 6 add_definitions(-DUNQLITE_ENABLE_THREADS)
7 set(storage_SRCS storage_unqlite.cpp unqlite/*c) 7 file(GLOB storage_SRCS unqlite/*c)
8else (STORAGE_KYOTO) 8 set(storage_SRCS ${storage_SRCS} storage_unqlite.cpp)
9else (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)
11endif (STORAGE_KYOTO) 12endif (STORAGE_unqlite)
12 13
13set(command_SRCS 14set(command_SRCS
14 commands.cpp 15 commands.cpp
@@ -16,6 +17,7 @@ set(command_SRCS
16 storage_common.cpp 17 storage_common.cpp
17 ${storage_SRCS}) 18 ${storage_SRCS})
18 19
20message("We have: ${storage_SRCS}")
19add_library(${PROJECT_NAME} ${command_SRCS}) 21add_library(${PROJECT_NAME} ${command_SRCS})
20SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) 22SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)
21qt5_use_modules(${PROJECT_NAME} Widgets) 23qt5_use_modules(${PROJECT_NAME} Widgets)