Kaynağa Gözat

updated documentation

Ian Quah 1 yıl önce
ebeveyn
işleme
13d1ccf6e4
3 değiştirilmiş dosya ile 15 ekleme ve 3 silme
  1. 2 1
      .gitignore
  2. 12 1
      README.md
  3. 1 1
      src/pke/cryptocontext_wrapper.cpp

+ 2 - 1
.gitignore

@@ -1,2 +1,3 @@
 build/
-.vscode/
+.vscode/
+.idea

+ 12 - 1
README.md

@@ -1,7 +1,16 @@
 # [Work in Progress] Official Python wrapper for OpenFHE
 
+## Table of Contents
+
+- [Building](#building)
+  - [Prerequisites](#requirements)
+  - [Linux Install](#linux)
+- [Running Examples](#examples)
+
 ## Building
 
+### Requirements
+
 Before building, make sure you have the following dependencies installed:
 
 - [CMake](https://cmake.org/)
@@ -16,12 +25,14 @@ With all the dependencies set up, clone the repository, open a terminal in the r
 ```bash
 mkdir build
 cd build
-cmake ..
+cmake ..  // Alternatively, cmake .. -DOpenFHE_DIR=/path/to/installed/openfhe
 make
 make install
 ```
 Obs.: If the last command fails, try running it with sudo.
 
+## Examples
+
 After that, you can run the examples in the src/pke/examples folder:
 
 ```bash

+ 1 - 1
src/pke/cryptocontext_wrapper.cpp

@@ -1,6 +1,6 @@
 #include <pybind11/pybind11.h>
 #include <pybind11/stl.h>
-#include <openfhe/pke/openfhe.h>
+#include <openfhe.h>
 #include <vector>
 #include <algorithm>
 #include <complex>