CMakeLists.txt 725 B

123456789101112131415161718192021222324252627282930
  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. include_directories(..)
  6. add_library(pir_crypto STATIC
  7. AbstractPublicParameters.cpp
  8. HomomorphicCrypto.cpp
  9. HomomorphicCryptoFactory_internal.cpp
  10. LatticesBasedCryptosystem.cpp
  11. NFLLWE.cpp
  12. NFLLWEPublicParameters.cpp
  13. NFLParams.cpp
  14. NFLlib.cpp
  15. NoCryptography.cpp
  16. NoCryptographyPublicParameters.cpp
  17. PaillierAdapter.cpp
  18. PaillierKeys.cpp
  19. PaillierPrivateParameters.cpp
  20. PaillierPublicParameters.cpp)
  21. if (APPLE)
  22. target_link_libraries(pir_crypto pir_crypto_prng )
  23. else()
  24. target_link_libraries(pir_crypto pir_crypto_prng gmp)
  25. endif()