You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
758B

  1. cmake_minimum_required(VERSION 3.0)
  2. project(zstreedb2 CXX)
  3. set(INSTALL_BIN_DIR bin CACHE PATH "Installation directory for binaries")
  4. set(CMAKE_CXX_STANDARD 17)
  5. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  6. find_package(Threads REQUIRED)
  7. find_package(RocksDB REQUIRED)
  8. include_directories(${RocksDB_INCLUDE_DIRS})
  9. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fno-plt -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables")
  10. add_executable(zstreedb2 args.cxx error.cxx main.cxx)
  11. target_link_libraries(zstreedb2 Threads::Threads RocksDB::rocksdb-shared)
  12. add_executable(zstreedb2maint maint.cxx)
  13. target_link_libraries(zstreedb2maint Threads::Threads RocksDB::rocksdb-shared)
  14. install(TARGETS zstreedb2 zstreedb2maint DESTINATION "${INSTALL_BIN_DIR}")