-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
71 lines (63 loc) · 2.68 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
CMAKE_MINIMUM_REQUIRED(VERSION 3.9)
PROJECT(LLeveldb VERSION 1.23.0 LANGUAGES C CXX)
# C standard can be overridden when this is used as a sub-project.
if(NOT CMAKE_C_STANDARD)
# This project can use C11, but will gracefully decay down to C89.
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED OFF)
set(CMAKE_C_EXTENSIONS OFF)
endif(NOT CMAKE_C_STANDARD)
# C++ standard can be overridden when this is used as a sub-project.
if(NOT CMAKE_CXX_STANDARD)
# This project requires C++11.
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
endif(NOT CMAKE_CXX_STANDARD)
#SET(LEVELDB_PUBLIC_INCLUDE_DIR "include/leveldb")
#SET(LEVELDB_PORT_CONFIG_DIR "include/port")
INCLUDE_DIRECTORIES(
"."
"include"
)
ADD_LIBRARY(leveldb "" table/filter_block.cpp include/leveldb/table_builder.h table/table_builder.cpp include/leveldb/env.h util/env.cpp include/leveldb/table.h table/table.cpp include/leveldb/cache.h table/two_level_iterator.h table/two_level_iterator.cpp table/iterator_wrapper.h util/cache.cpp port/thread_annotations.h util/mutexlock.h port/port_stdcxx.h db/table_cache.h db/table_cache.cpp db/filename.h db/filename.cpp util/logging.h util/logging.cpp util/env_posix.cc util/posix_logger.h util/env_posix_test_helper.h db/version_edit.h db/version_set.h db/version_edit.cpp db/version_set.cpp table/merger.h table/merger.cpp db/builder.h db/builder.cpp include/leveldb/db.h include/leveldb/dumpfile.h db/dumpfile.cpp include/leveldb/write_batch.h db/write_batch_internal.h db/write_batch.cpp db/snapshot.h db/db_iter.h db/db_iter.cpp db/db_impl.h db/db_impl.cpp util/options.cpp)
TARGET_SOURCES(leveldb
PRIVATE
"db/dbformat.cc"
"db/dbformat.h"
"db/log_format.h"
"db/log_reader.cc"
"db/log_reader.h"
"db/log_writer.cc"
"db/log_writer.h"
"db/memtable.cc"
"db/memtable.h"
"db/skiplist.h"
"port/port.h"
"table/block_builder.cc"
"table/block_builder.h"
"table/filter_block.h"
"table/block.cc"
"table/block.h"
"table/format.cc"
"table/format.h"
"table/iterator.cc"
"util/arena.cc"
"util/arena.h"
"util/bloom.cc"
"util/coding.cc"
"util/coding.h"
"util/comparator.cc"
"util/crc32c.cc"
"util/crc32c.h"
"util/filter_policy.cc"
"util/hash.cc"
"util/hash.h"
"util/status.cc"
"include/leveldb/comparator.h"
"include/leveldb/filter_policy.h"
"include/leveldb/iterator.h"
"include/leveldb/options.h"
"include/leveldb/slice.h"
"include/leveldb/status.h"
)