You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
1.1 KiB

  1. ############################################################################
  2. # CMakeLists.txt
  3. #
  4. # Released under the MIT License. See LICENSE.txt for license information.
  5. #
  6. ############################################################################
  7. if(ENABLE_SHARED)
  8. set(DECAF_LIBRARIES_FOR_TESTER decaf)
  9. else()
  10. set(DECAF_LIBRARIES_FOR_TESTER decaf-static)
  11. endif()
  12. add_executable(decaf_tester test_decaf.cxx)
  13. set_target_properties(decaf_tester PROPERTIES LINKER_LANGUAGE CXX)
  14. target_link_libraries(decaf_tester ${DECAF_LIBRARIES_FOR_TESTER})
  15. add_executable(ristretto_tester ristretto.cxx)
  16. set_target_properties(ristretto_tester PROPERTIES LINKER_LANGUAGE CXX)
  17. target_link_libraries(ristretto_tester ${DECAF_LIBRARIES_FOR_TESTER})
  18. add_executable(shakesum_tester shakesum.c)
  19. set_target_properties(shakesum_tester PROPERTIES LINKER_LANGUAGE C)
  20. target_link_libraries(shakesum_tester ${DECAF_LIBRARIES_FOR_TESTER})
  21. add_executable(bench bench_decaf.cxx)
  22. set_target_properties(bench PROPERTIES LINKER_LANGUAGE CXX)
  23. target_link_libraries(bench ${DECAF_LIBRARIES_FOR_TESTER})
  24. add_test(NAME decaf COMMAND decaf_tester)
  25. add_test(NAME bench COMMAND bench)