Skip to content
Snippets Groups Projects
Commit 2dfaab4c authored by Weiqi's avatar Weiqi
Browse files

Basic docs

parent a1c5e9a4
Branches
No related tags found
No related merge requests found
# Set cmake version.
cmake_minimum_required(VERSION 3.24)
# Project name and language.
project(
PPANN
VERSION 0.1
DESCRIPTION "Test"
DESCRIPTION "This project implements the inner product revealing encryption."
LANGUAGES C
)
# Set standards and include tests.
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
set(CMAKE_C_STANDARD 17)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
include(CTest)
endif()
# Find the relic library.
find_library(RELIC_LIB relic)
# Add desired subdirectories.
add_subdirectory(src)
add_subdirectory(apps)
add_subdirectory(tests)
\ No newline at end of file
# Call this executable app.
add_executable(app scheme.c)
target_link_libraries(app PRIVATE ppann_lib)
\ No newline at end of file
# Include the header list.
set(HEADER_LIST "${CMAKE_SOURCE_DIR}/include/")
# Add all files to the library.
add_library(ppann_lib field.c group.c vector.c matrix.c ${HEADER_LIST})
# We need this directory, and users of our library will need it too
target_include_directories(ppann_lib PUBLIC ../include)
# This depends on (header only) boost
# This depends on the relic library.
target_link_libraries(ppann_lib PRIVATE ${RELIC_LIB})
# IDEs should put the headers in a nice place
# IDEs should put the headers in a nice place.
source_group(
TREE "${PROJECT_SOURCE_DIR}/include"
PREFIX "Header Files"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment