-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
42 lines (33 loc) · 933 Bytes
/
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
cmake_minimum_required(VERSION 3.28)
project(SR C CXX)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror")
if (CMAKE_BUILD_TYPE MATCHES "Debug")
add_compile_options(-fsanitize=address,undefined)
add_link_options(-fsanitize=address,undefined)
endif()
add_subdirectory(tests)
# Option to build benchmarks
option(BUILD_BENCHMARKS "Enable building benchmarks" OFF)
if (BUILD_BENCHMARKS)
add_subdirectory(benchmark)
endif()
include_directories(include)
add_library(SR STATIC
include/query.h
src/query.c
src/generator.c
include/generator.h
include/source.h
include/data.h
include/utils.h
src/data.c
include/file_source.h
src/file_source.c
include/mutli_source.h
src/multi_source.c
include/operator.h
)
enable_testing()