12345678910111213141516171819202122232425262728293031323334 |
- cmake_minimum_required(VERSION 2.6.0)
- add_subdirectory("prng")
- set(CMAKE_CXX_FLAGS "-std=c++11 -fopenmp")
- set (CMAKE_EXE_LINKER_FLAGS "-fopenmp")
- if (APPLE)
- set(CMAKE_EXE_LINKER_FLAGS "-fopenmp -L$ENV{HOME}/Code/xpir/freshxpir/xpir-ng/local/lib/ -lboost_program_options")
- endif()
- 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()
|