-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
49 lines (40 loc) · 1.33 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
cmake_minimum_required(VERSION 3.16)
project(garner)
set(CMAKE_CXX_STANDARD 20)
find_package(Threads)
if(NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "")
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
endif()
add_compile_definitions("$<$<CONFIG:RELEASE>:NDEBUG>")
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
# Benchmarking options.
OPTION(TXN_STAT "Collect transaction latency breakdown statistics" OFF)
configure_file("build_options.hpp.in" "build_options.hpp")
# Garner DB library.
add_subdirectory(garner)
# Client, testing, and benchmarking executables.
add_subdirectory(tests)
add_subdirectory(bench)
# Tests:
enable_testing()
add_test(
NAME Test_Single_BPTree
COMMAND $<TARGET_FILE:test_single_bptree>)
add_test(
NAME Test_Concur_BPTree
COMMAND $<TARGET_FILE:test_concur_bptree>)
add_test(
NAME Test_Single_TxnRun_Silo
COMMAND $<TARGET_FILE:test_single_txnrun> -p silo)
add_test(
NAME Test_Concur_TxnRun_Silo
COMMAND $<TARGET_FILE:test_concur_txnrun> -p silo)
add_test(
NAME Test_Single_TxnRun_Silo_HV
COMMAND $<TARGET_FILE:test_single_txnrun> -p silo_hv)
add_test(
NAME Test_Concur_TxnRun_Silo_HV_Static
COMMAND $<TARGET_FILE:test_concur_txnrun> -p silo_hv -s)
# add_test(
# NAME Test_Concur_TxnRun_Silo_HV
# COMMAND $<TARGET_FILE:test_concur_txnrun> -p silo_hv)