CMakeLists.txt 685 B

123456789101112131415161718192021222324
  1. cmake_minimum_required(VERSION 2.6.0)
  2. include_directories(.)
  3. include_directories(..)
  4. include_directories(../..)
  5. add_custom_target(build-time-make-directory-simple-pir ALL COMMAND ${CMAKE_COMMAND} -E make_directory "db")
  6. file(COPY "../tools/makedb.sh" DESTINATION ".")
  7. add_executable(simple_pir simplePIR.cpp ../../libpir.hpp)
  8. target_link_libraries(simple_pir pir pthread ${MPFR_LIBRARIES} ${Boost_LIBRARIES} ${GMP_LIBRARIES} ${GMPXX_LIBRARIES})
  9. add_custom_command(
  10. OUTPUT .simplepirdb
  11. WORKING_DIR ${PROJECT_BINARY_DIR}/apps/simplepir
  12. COMMAND ./makedb.sh 1024 16 2>/dev/null
  13. COMMAND touch .simplepirdb
  14. )
  15. add_custom_target(simplepirdb ALL DEPENDS .simplepirdb)