Skip to content

Commit

Permalink
Merge branch 'master' of github.com:masakistan/kcollections
Browse files Browse the repository at this point in the history
  • Loading branch information
Colelyman committed Feb 4, 2020
2 parents 67690d4 + 80693af commit 4a4e768
Show file tree
Hide file tree
Showing 204 changed files with 5,496 additions and 283 deletions.
11 changes: 9 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)

set(CMAKE_CXX_STANDARD 14)
#set(CMAKE_CXX_STANDARD_REQUIRED ON)
#set(CMAKE_CXX_EXTENSIONS OFF)

# Add inc directories
include_directories(inc)
Expand All @@ -59,10 +61,10 @@ option(PYTHON "compile the python bindings")
if (${PYTHON})
message("compiling python bindings")
# pybind11 library
add_subdirectory(libs/pybind11-2.3.0)
add_subdirectory(libs/pybind11-2.4.3)
set(PYBIND11_PYTHON_VERSION ${PYTHON_VERSION})
include_directories(${PYTHON_INCLUDE_DIR})
include_directories(libs/pybind11-2.3.0/include)
include_directories(libs/pybind11-2.4.3/include)

pybind11_add_module(_Kset ${kcollections_src} "${SOURCE_DIR}/Kset.cc" "${SOURCE_DIR}/Kcollections.cc" ${uint256_src})
target_link_libraries(_Kset PRIVATE pybind11::module)
Expand Down Expand Up @@ -97,6 +99,11 @@ else()
target_link_libraries(counterbulktest Threads::Threads Kcounter)
set_target_properties(counterbulktest PROPERTIES COMPILE_DEFINITIONS "KCOUNTER")

# Testing kcounter serial
add_executable(counterserialtest "${SOURCE_DIR}/TestCounterSerial.cpp" $<TARGET_OBJECTS:kcollections_counter_objs>)
target_link_libraries(counterserialtest Threads::Threads Kcounter)
set_target_properties(counterserialtest PROPERTIES COMPILE_DEFINITIONS "KCOUNTER")

# Testing Kdict
add_executable(dictbulktest "${SOURCE_DIR}/TestDictBulk.cpp" $<TARGET_OBJECTS:kcollections_dict_objs>)
target_link_libraries(dictbulktest Threads::Threads Kdict)
Expand Down
Loading

0 comments on commit 4a4e768

Please sign in to comment.