CMakeLists.txt 861 B

12345678910111213141516171819202122232425262728293031323334
  1. cmake_minimum_required(VERSION 2.6.0)
  2. add_subdirectory("prng")
  3. set(CMAKE_CXX_FLAGS "-std=c++11 -fopenmp")
  4. set (CMAKE_EXE_LINKER_FLAGS "-fopenmp")
  5. if (APPLE)
  6. set(CMAKE_EXE_LINKER_FLAGS "-fopenmp -L$ENV{HOME}/Code/xpir/freshxpir/xpir-ng/local/lib/ -lboost_program_options")
  7. endif()
  8. include_directories(..)
  9. add_library(pir_crypto STATIC
  10. AbstractPublicParameters.cpp
  11. HomomorphicCrypto.cpp
  12. HomomorphicCryptoFactory_internal.cpp
  13. LatticesBasedCryptosystem.cpp
  14. NFLLWE.cpp
  15. NFLLWEPublicParameters.cpp
  16. NFLParams.cpp
  17. NFLlib.cpp
  18. NoCryptography.cpp
  19. NoCryptographyPublicParameters.cpp
  20. PaillierAdapter.cpp
  21. PaillierKeys.cpp
  22. PaillierPrivateParameters.cpp
  23. PaillierPublicParameters.cpp)
  24. if (APPLE)
  25. target_link_libraries(pir_crypto pir_crypto_prng )
  26. else()
  27. target_link_libraries(pir_crypto pir_crypto_prng gmp)
  28. endif()