123456789101112131415161718192021222324252627282930 |
- cmake_minimum_required(VERSION 2.6.0)
- add_subdirectory("prng")
- set(CMAKE_CXX_FLAGS "-std=c++11 -fopenmp")
- set (CMAKE_EXE_LINKER_FLAGS "-fopenmp")
- include_directories(..)
- add_library(pir_crypto STATIC
- AbstractPublicParameters.cpp
- HomomorphicCrypto.cpp
- HomomorphicCryptoFactory_internal.cpp
- LatticesBasedCryptosystem.cpp
- NFLLWE.cpp
- NFLLWEPublicParameters.cpp
- NFLParams.cpp
- NFLlib.cpp
- NoCryptography.cpp
- NoCryptographyPublicParameters.cpp
- PaillierAdapter.cpp
- PaillierKeys.cpp
- PaillierPrivateParameters.cpp
- PaillierPublicParameters.cpp)
- if (APPLE)
- target_link_libraries(pir_crypto pir_crypto_prng )
- else()
- target_link_libraries(pir_crypto pir_crypto_prng gmp)
- endif()
|