Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ppann
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Boston University PhD
IPFRE
ppann
Commits
2dfaab4c
Commit
2dfaab4c
authored
Mar 2, 2023
by
Weiqi
Browse files
Options
Downloads
Patches
Plain Diff
Basic docs
parent
a1c5e9a4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+7
-1
7 additions, 1 deletion
CMakeLists.txt
apps/CMakeLists.txt
+1
-0
1 addition, 0 deletions
apps/CMakeLists.txt
src/CMakeLists.txt
+4
-2
4 additions, 2 deletions
src/CMakeLists.txt
with
12 additions
and
3 deletions
CMakeLists.txt
+
7
−
1
View file @
2dfaab4c
# Set cmake version.
cmake_minimum_required
(
VERSION 3.24
)
# Project name and language.
project
(
PPANN
VERSION 0.1
DESCRIPTION
"T
est
"
DESCRIPTION
"T
his 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
This diff is collapsed.
Click to expand it.
apps/CMakeLists.txt
+
1
−
0
View file @
2dfaab4c
# Call this executable app.
add_executable
(
app scheme.c
)
target_link_libraries
(
app PRIVATE ppann_lib
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
4
−
2
View file @
2dfaab4c
# 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
(
he
ader only) boost
# This depends on
t
he
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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment