CMakeLists.txt 1020 B

123456789101112131415161718192021
  1. cmake_minimum_required(VERSION 2.6.0)
  2. add_subdirectory("client")
  3. add_subdirectory("optim")
  4. add_subdirectory("server")
  5. add_subdirectory("simplepir")
  6. set(CMAKE_CXX_FLAGS "-std=c++11")
  7. set (CMAKE_EXE_LINKER_FLAGS "-fopenmp")
  8. include_directories(..)
  9. include_directories(../..)
  10. add_custom_target(build-time-make-directory ALL COMMAND ${CMAKE_COMMAND} -E make_directory "server/db")
  11. add_custom_target(build-time-make-directory1 ALL COMMAND ${CMAKE_COMMAND} -E make_directory "server/exp")
  12. add_custom_target(build-time-make-directory2 ALL COMMAND ${CMAKE_COMMAND} -E make_directory "client/reception")
  13. add_custom_target(build-time-make-directory3 ALL COMMAND ${CMAKE_COMMAND} -E make_directory "client/exp")
  14. #add_executable(simple_pir simplePIR.cpp ../pir/libpir.hpp ./server/DBGenerator.cpp ./server/DBDirectoryProcessor.cpp)
  15. #target_link_libraries(simple_pir pir_server_pir pir_query_gen pir_reply pir pir_client_events pir_client_optim pthread ${MPFR_LIBRARIES} ${Boost_LIBRARIES} ${GMP_LIBRARIES} ${GMPXX_LIBRARIES})