CMakeLists.txt 402 B

123456789101112131415161718192021
  1. cmake_minimum_required(VERSION 3.10)
  2. set(CMAKE_CXX_STANDARD 17)
  3. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  4. project(SealPIR VERSION 2.1 LANGUAGES CXX)
  5. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
  6. add_executable(main
  7. main.cpp
  8. )
  9. add_library(sealpir STATIC
  10. pir.cpp
  11. pir_client.cpp
  12. pir_server.cpp
  13. )
  14. find_package(SEAL 3.2.0 EXACT REQUIRED)
  15. target_link_libraries(main sealpir SEAL::seal)