-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (33 loc) · 1.07 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
# Set cmake version.
cmake_minimum_required(VERSION 3.20)
# Project name and language.
project(
SecureConjunctiveQuery
DESCRIPTION "This project implements a few methods to process conjunctive queries securely over an encrypted database."
LANGUAGES CXX
)
# Set standards.
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Enable the testing.
enable_testing()
# Find required libraries.
find_package(RBP REQUIRED)
find_package(OpenSSL REQUIRED)
# Find the google test library for testing.
find_package(GTest)
if (NOT GTest_FOUND)
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
endif ()
# Add desired subdirectories.
add_subdirectory(src)
add_subdirectory(test)
add_subdirectory(experiment)