小组成员:姚凯文(kevinyao0901),姜嘉琪
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

416 righe
15 KiB

  1. # Copyright 2017 The LevelDB Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file. See the AUTHORS file for names of contributors.
  4. cmake_minimum_required(VERSION 3.9)
  5. project(leveldb VERSION 1.21.0 LANGUAGES C CXX)
  6. # This project can use C11, but will gracefully decay down to C89.
  7. set(CMAKE_C_STANDARD 11)
  8. set(CMAKE_C_STANDARD_REQUIRED OFF)
  9. set(CMAKE_C_EXTENSIONS OFF)
  10. # This project requires C++11.
  11. set(CMAKE_CXX_STANDARD 11)
  12. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  13. set(CMAKE_CXX_EXTENSIONS OFF)
  14. option(LEVELDB_BUILD_TESTS "Build LevelDB's unit tests" ON)
  15. option(LEVELDB_BUILD_BENCHMARKS "Build LevelDB's benchmarks" ON)
  16. option(LEVELDB_INSTALL "Install LevelDB's header and library" ON)
  17. include(TestBigEndian)
  18. test_big_endian(LEVELDB_IS_BIG_ENDIAN)
  19. include(CheckIncludeFile)
  20. check_include_file("unistd.h" HAVE_UNISTD_H)
  21. include(CheckLibraryExists)
  22. check_library_exists(crc32c crc32c_value "" HAVE_CRC32C)
  23. check_library_exists(snappy snappy_compress "" HAVE_SNAPPY)
  24. check_library_exists(tcmalloc malloc "" HAVE_TCMALLOC)
  25. include(CheckSymbolExists)
  26. check_symbol_exists(fdatasync "unistd.h" HAVE_FDATASYNC)
  27. include(CheckCXXSourceCompiles)
  28. # Test whether -Wthread-safety is available. See
  29. # https://clang.llvm.org/docs/ThreadSafetyAnalysis.html
  30. # -Werror is necessary because unknown attributes only generate warnings.
  31. set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
  32. list(APPEND CMAKE_REQUIRED_FLAGS -Werror -Wthread-safety)
  33. check_cxx_source_compiles("
  34. struct __attribute__((lockable)) Lock {
  35. void Acquire() __attribute__((exclusive_lock_function()));
  36. void Release() __attribute__((unlock_function()));
  37. };
  38. struct ThreadSafeType {
  39. Lock lock_;
  40. int data_ __attribute__((guarded_by(lock_)));
  41. };
  42. int main() { return 0; }
  43. " HAVE_CLANG_THREAD_SAFETY)
  44. set(CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQUIRED_FLAGS})
  45. set(LEVELDB_PUBLIC_INCLUDE_DIR "include/leveldb")
  46. set(LEVELDB_PORT_CONFIG_DIR "include/port")
  47. configure_file(
  48. "${PROJECT_SOURCE_DIR}/port/port_config.h.in"
  49. "${PROJECT_BINARY_DIR}/${LEVELDB_PORT_CONFIG_DIR}/port_config.h"
  50. )
  51. include_directories(
  52. "${PROJECT_BINARY_DIR}/include"
  53. "${PROJECT_SOURCE_DIR}"
  54. )
  55. if(BUILD_SHARED_LIBS)
  56. # Only export LEVELDB_EXPORT symbols from the shared library.
  57. add_compile_options(-fvisibility=hidden)
  58. endif(BUILD_SHARED_LIBS)
  59. # POSIX code is specified separately so we can leave it out in the future.
  60. add_library(leveldb_port_posix OBJECT "")
  61. target_sources(leveldb_port_posix
  62. PRIVATE
  63. "${PROJECT_SOURCE_DIR}/port/port_posix.cc"
  64. PUBLIC
  65. # The headers below are dependencies for leveldb, but aren't needed by users
  66. # that link to the installed version of leveldb and rely on its public API.
  67. $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/${LEVELDB_PORT_CONFIG_DIR}/port_config.h>
  68. $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/port/atomic_pointer.h>
  69. $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/port/port_posix.h>
  70. $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/port/port.h>
  71. )
  72. if(BUILD_SHARED_LIBS)
  73. set_property(TARGET leveldb_port_posix PROPERTY POSITION_INDEPENDENT_CODE ON)
  74. endif(BUILD_SHARED_LIBS)
  75. add_library(leveldb "")
  76. target_sources(leveldb
  77. PRIVATE
  78. "${PROJECT_SOURCE_DIR}/db/builder.cc"
  79. "${PROJECT_SOURCE_DIR}/db/builder.h"
  80. "${PROJECT_SOURCE_DIR}/db/c.cc"
  81. "${PROJECT_SOURCE_DIR}/db/db_impl.cc"
  82. "${PROJECT_SOURCE_DIR}/db/db_impl.h"
  83. "${PROJECT_SOURCE_DIR}/db/db_iter.cc"
  84. "${PROJECT_SOURCE_DIR}/db/db_iter.h"
  85. "${PROJECT_SOURCE_DIR}/db/dbformat.cc"
  86. "${PROJECT_SOURCE_DIR}/db/dbformat.h"
  87. "${PROJECT_SOURCE_DIR}/db/dumpfile.cc"
  88. "${PROJECT_SOURCE_DIR}/db/filename.cc"
  89. "${PROJECT_SOURCE_DIR}/db/filename.h"
  90. "${PROJECT_SOURCE_DIR}/db/log_format.h"
  91. "${PROJECT_SOURCE_DIR}/db/log_reader.cc"
  92. "${PROJECT_SOURCE_DIR}/db/log_reader.h"
  93. "${PROJECT_SOURCE_DIR}/db/log_writer.cc"
  94. "${PROJECT_SOURCE_DIR}/db/log_writer.h"
  95. "${PROJECT_SOURCE_DIR}/db/memtable.cc"
  96. "${PROJECT_SOURCE_DIR}/db/memtable.h"
  97. "${PROJECT_SOURCE_DIR}/db/repair.cc"
  98. "${PROJECT_SOURCE_DIR}/db/skiplist.h"
  99. "${PROJECT_SOURCE_DIR}/db/snapshot.h"
  100. "${PROJECT_SOURCE_DIR}/db/table_cache.cc"
  101. "${PROJECT_SOURCE_DIR}/db/table_cache.h"
  102. "${PROJECT_SOURCE_DIR}/db/version_edit.cc"
  103. "${PROJECT_SOURCE_DIR}/db/version_edit.h"
  104. "${PROJECT_SOURCE_DIR}/db/version_set.cc"
  105. "${PROJECT_SOURCE_DIR}/db/version_set.h"
  106. "${PROJECT_SOURCE_DIR}/db/write_batch_internal.h"
  107. "${PROJECT_SOURCE_DIR}/db/write_batch.cc"
  108. "${PROJECT_SOURCE_DIR}/port/port.h"
  109. "${PROJECT_SOURCE_DIR}/port/thread_annotations.h"
  110. "${PROJECT_SOURCE_DIR}/table/block_builder.cc"
  111. "${PROJECT_SOURCE_DIR}/table/block_builder.h"
  112. "${PROJECT_SOURCE_DIR}/table/block.cc"
  113. "${PROJECT_SOURCE_DIR}/table/block.h"
  114. "${PROJECT_SOURCE_DIR}/table/filter_block.cc"
  115. "${PROJECT_SOURCE_DIR}/table/filter_block.h"
  116. "${PROJECT_SOURCE_DIR}/table/format.cc"
  117. "${PROJECT_SOURCE_DIR}/table/format.h"
  118. "${PROJECT_SOURCE_DIR}/table/iterator_wrapper.h"
  119. "${PROJECT_SOURCE_DIR}/table/iterator.cc"
  120. "${PROJECT_SOURCE_DIR}/table/merger.cc"
  121. "${PROJECT_SOURCE_DIR}/table/merger.h"
  122. "${PROJECT_SOURCE_DIR}/table/table_builder.cc"
  123. "${PROJECT_SOURCE_DIR}/table/table.cc"
  124. "${PROJECT_SOURCE_DIR}/table/two_level_iterator.cc"
  125. "${PROJECT_SOURCE_DIR}/table/two_level_iterator.h"
  126. "${PROJECT_SOURCE_DIR}/util/arena.cc"
  127. "${PROJECT_SOURCE_DIR}/util/arena.h"
  128. "${PROJECT_SOURCE_DIR}/util/bloom.cc"
  129. "${PROJECT_SOURCE_DIR}/util/cache.cc"
  130. "${PROJECT_SOURCE_DIR}/util/coding.cc"
  131. "${PROJECT_SOURCE_DIR}/util/coding.h"
  132. "${PROJECT_SOURCE_DIR}/util/comparator.cc"
  133. "${PROJECT_SOURCE_DIR}/util/crc32c.cc"
  134. "${PROJECT_SOURCE_DIR}/util/crc32c.h"
  135. "${PROJECT_SOURCE_DIR}/util/env_posix.cc"
  136. "${PROJECT_SOURCE_DIR}/util/env.cc"
  137. "${PROJECT_SOURCE_DIR}/util/filter_policy.cc"
  138. "${PROJECT_SOURCE_DIR}/util/hash.cc"
  139. "${PROJECT_SOURCE_DIR}/util/hash.h"
  140. "${PROJECT_SOURCE_DIR}/util/logging.cc"
  141. "${PROJECT_SOURCE_DIR}/util/logging.h"
  142. "${PROJECT_SOURCE_DIR}/util/mutexlock.h"
  143. "${PROJECT_SOURCE_DIR}/util/options.cc"
  144. "${PROJECT_SOURCE_DIR}/util/posix_logger.h"
  145. "${PROJECT_SOURCE_DIR}/util/random.h"
  146. "${PROJECT_SOURCE_DIR}/util/status.cc"
  147. $<TARGET_OBJECTS:leveldb_port_posix>
  148. # Only CMake 3.3+ supports PUBLIC sources in targets exported by "install".
  149. $<$<VERSION_GREATER:CMAKE_VERSION,3.2>:PUBLIC>
  150. "${LEVELDB_PUBLIC_INCLUDE_DIR}/c.h"
  151. "${LEVELDB_PUBLIC_INCLUDE_DIR}/cache.h"
  152. "${LEVELDB_PUBLIC_INCLUDE_DIR}/comparator.h"
  153. "${LEVELDB_PUBLIC_INCLUDE_DIR}/db.h"
  154. "${LEVELDB_PUBLIC_INCLUDE_DIR}/dumpfile.h"
  155. "${LEVELDB_PUBLIC_INCLUDE_DIR}/env.h"
  156. "${LEVELDB_PUBLIC_INCLUDE_DIR}/export.h"
  157. "${LEVELDB_PUBLIC_INCLUDE_DIR}/filter_policy.h"
  158. "${LEVELDB_PUBLIC_INCLUDE_DIR}/iterator.h"
  159. "${LEVELDB_PUBLIC_INCLUDE_DIR}/options.h"
  160. "${LEVELDB_PUBLIC_INCLUDE_DIR}/slice.h"
  161. "${LEVELDB_PUBLIC_INCLUDE_DIR}/status.h"
  162. "${LEVELDB_PUBLIC_INCLUDE_DIR}/table_builder.h"
  163. "${LEVELDB_PUBLIC_INCLUDE_DIR}/table.h"
  164. "${LEVELDB_PUBLIC_INCLUDE_DIR}/write_batch.h"
  165. )
  166. # MemEnv is not part of the interface and could be pulled to a separate library.
  167. target_sources(leveldb
  168. PRIVATE
  169. "${PROJECT_SOURCE_DIR}/helpers/memenv/memenv.cc"
  170. "${PROJECT_SOURCE_DIR}/helpers/memenv/memenv.h"
  171. )
  172. target_include_directories(leveldb
  173. PUBLIC
  174. $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
  175. $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
  176. )
  177. target_compile_definitions(leveldb
  178. PRIVATE
  179. # Used by include/export.h when building shared libraries.
  180. LEVELDB_COMPILE_LIBRARY
  181. # Used by port/port.h.
  182. LEVELDB_PLATFORM_POSIX=1
  183. )
  184. if(BUILD_SHARED_LIBS)
  185. target_compile_definitions(leveldb
  186. PUBLIC
  187. # Used by include/export.h.
  188. LEVELDB_SHARED_LIBRARY
  189. )
  190. endif(BUILD_SHARED_LIBS)
  191. if(HAVE_CLANG_THREAD_SAFETY)
  192. target_compile_options(leveldb
  193. PUBLIC
  194. -Werror -Wthread-safety)
  195. endif(HAVE_CLANG_THREAD_SAFETY)
  196. # TODO(costan): This is only needed for port_posix.
  197. set(THREADS_PREFER_PTHREAD_FLAG ON)
  198. find_package(Threads REQUIRED)
  199. target_link_libraries(leveldb Threads::Threads)
  200. if(HAVE_CRC32C)
  201. target_link_libraries(leveldb crc32c)
  202. endif(HAVE_CRC32C)
  203. if(HAVE_SNAPPY)
  204. target_link_libraries(leveldb snappy)
  205. endif(HAVE_SNAPPY)
  206. if(HAVE_TCMALLOC)
  207. target_link_libraries(leveldb tcmalloc)
  208. endif(HAVE_TCMALLOC)
  209. add_executable(leveldbutil
  210. "${PROJECT_SOURCE_DIR}/db/leveldbutil.cc"
  211. )
  212. target_link_libraries(leveldbutil leveldb)
  213. if(LEVELDB_BUILD_TESTS)
  214. enable_testing()
  215. function(leveldb_test test_file)
  216. get_filename_component(test_target_name "${test_file}" NAME_WE)
  217. add_executable("${test_target_name}" "")
  218. target_sources("${test_target_name}"
  219. PRIVATE
  220. "${PROJECT_BINARY_DIR}/${LEVELDB_PORT_CONFIG_DIR}/port_config.h"
  221. "${PROJECT_SOURCE_DIR}/util/testharness.cc"
  222. "${PROJECT_SOURCE_DIR}/util/testharness.h"
  223. "${PROJECT_SOURCE_DIR}/util/testutil.cc"
  224. "${PROJECT_SOURCE_DIR}/util/testutil.h"
  225. "${test_file}"
  226. )
  227. if(BUILD_SHARED_LIBS)
  228. # Port functions aren't exposed in the shared library build.
  229. target_sources("${test_target_name}"
  230. PRIVATE
  231. $<TARGET_OBJECTS:leveldb_port_posix>
  232. )
  233. endif(BUILD_SHARED_LIBS)
  234. target_link_libraries("${test_target_name}" leveldb)
  235. target_compile_definitions("${test_target_name}"
  236. PRIVATE
  237. LEVELDB_PLATFORM_POSIX=1
  238. )
  239. add_test(NAME "${test_target_name}" COMMAND "${test_target_name}")
  240. endfunction(leveldb_test)
  241. leveldb_test("${PROJECT_SOURCE_DIR}/db/c_test.c")
  242. leveldb_test("${PROJECT_SOURCE_DIR}/db/fault_injection_test.cc")
  243. leveldb_test("${PROJECT_SOURCE_DIR}/issues/issue178_test.cc")
  244. leveldb_test("${PROJECT_SOURCE_DIR}/issues/issue200_test.cc")
  245. leveldb_test("${PROJECT_SOURCE_DIR}/util/env_test.cc")
  246. if(NOT BUILD_SHARED_LIBS)
  247. leveldb_test("${PROJECT_SOURCE_DIR}/db/autocompact_test.cc")
  248. leveldb_test("${PROJECT_SOURCE_DIR}/db/corruption_test.cc")
  249. leveldb_test("${PROJECT_SOURCE_DIR}/db/db_test.cc")
  250. leveldb_test("${PROJECT_SOURCE_DIR}/db/dbformat_test.cc")
  251. leveldb_test("${PROJECT_SOURCE_DIR}/db/filename_test.cc")
  252. leveldb_test("${PROJECT_SOURCE_DIR}/db/log_test.cc")
  253. leveldb_test("${PROJECT_SOURCE_DIR}/db/recovery_test.cc")
  254. leveldb_test("${PROJECT_SOURCE_DIR}/db/skiplist_test.cc")
  255. leveldb_test("${PROJECT_SOURCE_DIR}/db/version_edit_test.cc")
  256. leveldb_test("${PROJECT_SOURCE_DIR}/db/version_set_test.cc")
  257. leveldb_test("${PROJECT_SOURCE_DIR}/db/write_batch_test.cc")
  258. leveldb_test("${PROJECT_SOURCE_DIR}/helpers/memenv/memenv_test.cc")
  259. leveldb_test("${PROJECT_SOURCE_DIR}/table/filter_block_test.cc")
  260. leveldb_test("${PROJECT_SOURCE_DIR}/table/table_test.cc")
  261. leveldb_test("${PROJECT_SOURCE_DIR}/util/arena_test.cc")
  262. leveldb_test("${PROJECT_SOURCE_DIR}/util/bloom_test.cc")
  263. leveldb_test("${PROJECT_SOURCE_DIR}/util/cache_test.cc")
  264. leveldb_test("${PROJECT_SOURCE_DIR}/util/coding_test.cc")
  265. leveldb_test("${PROJECT_SOURCE_DIR}/util/crc32c_test.cc")
  266. leveldb_test("${PROJECT_SOURCE_DIR}/util/hash_test.cc")
  267. # TODO(costan): This test also uses
  268. # "${PROJECT_SOURCE_DIR}/util/env_posix_test_helper.h"
  269. leveldb_test("${PROJECT_SOURCE_DIR}/util/env_posix_test.cc")
  270. endif(NOT BUILD_SHARED_LIBS)
  271. endif(LEVELDB_BUILD_TESTS)
  272. if(LEVELDB_BUILD_BENCHMARKS)
  273. function(leveldb_benchmark bench_file)
  274. get_filename_component(bench_target_name "${bench_file}" NAME_WE)
  275. add_executable("${bench_target_name}" "")
  276. target_sources("${bench_target_name}"
  277. PRIVATE
  278. "${PROJECT_BINARY_DIR}/${LEVELDB_PORT_CONFIG_DIR}/port_config.h"
  279. "${PROJECT_SOURCE_DIR}/util/histogram.cc"
  280. "${PROJECT_SOURCE_DIR}/util/histogram.h"
  281. "${PROJECT_SOURCE_DIR}/util/testharness.cc"
  282. "${PROJECT_SOURCE_DIR}/util/testharness.h"
  283. "${PROJECT_SOURCE_DIR}/util/testutil.cc"
  284. "${PROJECT_SOURCE_DIR}/util/testutil.h"
  285. "${bench_file}"
  286. )
  287. if(BUILD_SHARED_LIBS)
  288. # Port functions aren't exposed in the shared library build.
  289. target_sources("${bench_target_name}"
  290. PRIVATE
  291. $<TARGET_OBJECTS:leveldb_port_posix>
  292. )
  293. endif(BUILD_SHARED_LIBS)
  294. target_link_libraries("${bench_target_name}" leveldb)
  295. target_compile_definitions("${bench_target_name}"
  296. PRIVATE
  297. LEVELDB_PLATFORM_POSIX=1
  298. )
  299. endfunction(leveldb_benchmark)
  300. if(NOT BUILD_SHARED_LIBS)
  301. leveldb_benchmark("${PROJECT_SOURCE_DIR}/db/db_bench.cc")
  302. endif(NOT BUILD_SHARED_LIBS)
  303. check_library_exists(sqlite3 sqlite3_open "" HAVE_SQLITE3)
  304. if(HAVE_SQLITE3)
  305. leveldb_benchmark("${PROJECT_SOURCE_DIR}/doc/bench/db_bench_sqlite3.cc")
  306. target_link_libraries(db_bench_sqlite3 sqlite3)
  307. endif(HAVE_SQLITE3)
  308. # check_library_exists is insufficient here because the library names have
  309. # different manglings when compiled with clang or gcc, at least when installed
  310. # with Homebrew on Mac.
  311. set(OLD_CMAKE_REQURED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES})
  312. list(APPEND CMAKE_REQUIRED_LIBRARIES kyotocabinet)
  313. check_cxx_source_compiles("
  314. #include <kcpolydb.h>
  315. int main() {
  316. kyotocabinet::TreeDB* db = new kyotocabinet::TreeDB();
  317. delete db;
  318. return 0;
  319. }
  320. " HAVE_KYOTOCABINET)
  321. set(CMAKE_REQUIRED_LIBRARIES ${OLD_CMAKE_REQURED_LIBRARIES})
  322. if(HAVE_KYOTOCABINET)
  323. leveldb_benchmark("${PROJECT_SOURCE_DIR}/doc/bench/db_bench_tree_db.cc")
  324. target_link_libraries(db_bench_tree_db kyotocabinet)
  325. endif(HAVE_KYOTOCABINET)
  326. endif(LEVELDB_BUILD_BENCHMARKS)
  327. if(LEVELDB_INSTALL)
  328. include(GNUInstallDirs)
  329. install(TARGETS leveldb
  330. EXPORT leveldbTargets
  331. RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
  332. LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
  333. ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
  334. )
  335. install(
  336. FILES
  337. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/c.h"
  338. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/cache.h"
  339. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/comparator.h"
  340. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/db.h"
  341. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/dumpfile.h"
  342. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/env.h"
  343. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/export.h"
  344. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/filter_policy.h"
  345. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/iterator.h"
  346. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/options.h"
  347. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/slice.h"
  348. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/status.h"
  349. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/table_builder.h"
  350. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/table.h"
  351. "${PROJECT_SOURCE_DIR}/${LEVELDB_PUBLIC_INCLUDE_DIR}/write_batch.h"
  352. DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/leveldb
  353. )
  354. include(CMakePackageConfigHelpers)
  355. write_basic_package_version_file(
  356. "${PROJECT_BINARY_DIR}/leveldbConfigVersion.cmake"
  357. COMPATIBILITY SameMajorVersion
  358. )
  359. install(
  360. EXPORT leveldbTargets
  361. NAMESPACE leveldb::
  362. DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/leveldb"
  363. )
  364. install(
  365. FILES
  366. "${PROJECT_SOURCE_DIR}/cmake/leveldbConfig.cmake"
  367. "${PROJECT_BINARY_DIR}/leveldbConfigVersion.cmake"
  368. DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/leveldb"
  369. )
  370. endif(LEVELDB_INSTALL)