-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
38 lines (29 loc) · 837 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
38 lines (29 loc) · 837 Bytes
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
cmake_minimum_required(VERSION 3.13)
project(BloomFilter VERSION 1.0.0 LANGUAGES CXX)
# Set C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# Build options
option(BUILD_TESTS "Build tests" ON)
option(BUILD_EXAMPLES "Build examples" ON)
option(BUILD_BENCHMARKS "Build benchmarks" OFF)
# Include directories
include_directories(include)
# Source files (if any implementation files)
# Most of the library is header-only, but we can add source files here if needed
# Install headers
install(DIRECTORY include/ DESTINATION include)
# Build tests
if(BUILD_TESTS)
enable_testing()
add_subdirectory(tests)
endif()
# Build examples
if(BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
# Build benchmarks
if(BUILD_BENCHMARKS)
add_subdirectory(benchmarks)
endif()