jeudi 2 mars 2017

How can i run single test file in leveldb

try to compile source code like cache_test or coding_test under leveldb repository. get error : port has not been declared. what can be wrong? and here's my cmakelist:

cmake_minimum_required(VERSION 3.6)
project(leveldb_bw)

set(CMAKE_CXX_STANDARD 11)
include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/port)
include_directories(${PROJECT_SOURCE_DIR}/util)
set(SOURCE_FILES util/coding_test.cc util/coding.cc)
add_executable(leveldb_bw ${SOURCE_FILES})

Aucun commentaire:

Enregistrer un commentaire