diff options
Diffstat (limited to 'common/CMakeLists.txt')
-rw-r--r-- | common/CMakeLists.txt | 8 |
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 | ||
5 | if (STORAGE_unqlite) | 5 | if (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) |
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 |
@@ -16,6 +17,7 @@ set(command_SRCS | |||
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) |