Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
PALISADE Development
PALISADE Development
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 2
    • Merge Requests 2
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • PALISADE
  • PALISADE DevelopmentPALISADE Development
  • Wiki
  • Instructions for building user projects that use PALISADE

Last edited by Gerard W. Ryan Mar 23, 2020
Page history

Instructions for building user projects that use PALISADE

PALISADE provides a sample CMake file for building your own C++ project that links to the PALISADE library.

The high-level instructions for building projects that use PALISADE are as follows:

  1. Build and install PALISADE using "make install". This will copy the PALISADE library files and header files to the directory chosen for installation.
  2. Create the folder for your project on your system.
  3. Copy CMakeLists.User.txt from the root directory of the git repo to the folder for your project.
  4. Rename CMakeLists.User.txt to CMakeLists.txt.
  5. Update CMakeLists.txt to specify the name of the executable and the source code files. For example, include the following line
add_executable( fhe-demo simple-integers.cpp )
  1. If using MinGW/Windows (skip this step for other platforms), copy PreLoad.cmake from the root directory of the git repo to the folder of your project.
  2. Create the build directory and cd to it.
mkdir build
cd build
  1. Run
cmake ..
  1. Run "make" to build the executable.

To include a specific module, e.g., core or pke, in your C++ demo, use the main header file for that module, e.g., palisadecore.h or palisade.h. Please see the demos provided for that module for more examples. If your application uses serialization, additional header files will be needed (see the demos with serialization for more details).

Clone repository
  • Build instructions
  • CI Documentation
  • Cross Compiling for ETTIS
  • Frequently Asked Questions
  • Home
  • How to rebase your branch from the master branch
  • Instructions for building PALISADE in Linux
  • Instructions for building PALISADE in Windows
  • Instructions for building PALISADE in macOS
  • Instructions for building user projects that use PALISADE
  • Known Issues
  • Library Directory Structure
  • PALISADE Contributors
  • PALISADE Programming Style Design Guide
  • Palisade Exceptions
View All Pages