19 lines
729 B
CMake
19 lines
729 B
CMake
cmake_minimum_required(VERSION 3.18)
|
|
project(
|
|
conflict-set
|
|
VERSION 0.0.1
|
|
DESCRIPTION "A data structure for detecting mvcc read-write conflicts in a keyspace of lexicographically-ordered byte sequences."
|
|
LANGUAGES CXX)
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
add_library(conflict_set ConflictSet.cpp ConflictSet.h)
|
|
|
|
add_executable(conflict_set_test ConflictSet.cpp ConflictSet.h)
|
|
target_compile_definitions(conflict_set_test PRIVATE ENABLE_TESTS)
|
|
# keep asserts for test
|
|
target_compile_options(conflict_set_test PRIVATE -UNDEBUG)
|
|
target_compile_options(conflict_set_test PRIVATE -Wall -Wextra -Wpedantic -Wunreachable-code)
|
|
|
|
include(CTest)
|
|
add_test(NAME conflict_set_test COMMAND conflict_set_test) |