CMakeLists.txt 603 B

1234567891011121314151617181920
  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 main.cpp pir.cpp pir_client.cpp pir_server.cpp
  7. )
  8. add_executable(expand_test expand_test.cpp pir.cpp pir_client.cpp pir_server.cpp)
  9. add_executable(query_test query_test.cpp pir.cpp pir_client.cpp pir_server.cpp)
  10. find_package(SEAL 3.6 REQUIRED)
  11. target_link_libraries(main SEAL::seal)
  12. target_link_libraries(expand_test SEAL::seal)
  13. target_link_libraries(query_test SEAL::seal)