CMakeLists.txt 777 B

12345678910111213141516171819202122232425
  1. cmake_minimum_required(VERSION 2.8)
  2. project(SmallAndFast)
  3. include(CTest)
  4. add_executable(echoargs echoargs.c)
  5. set_property(SOURCE echoargs.c APPEND PROPERTY LABELS SourceLabel Everything)
  6. set_property(TARGET echoargs APPEND PROPERTY LABELS TargetLabel Everything)
  7. add_test(test0 echoargs)
  8. set_property(TEST test0 APPEND PROPERTY LABELS TestLabel 0ArgTest Everything)
  9. add_test(test1 echoargs 1)
  10. set_property(TEST test1 APPEND PROPERTY LABELS TestLabel 1ArgTest Everything)
  11. add_test(test2 echoargs 1 2)
  12. set_property(TEST test2 APPEND PROPERTY LABELS TestLabel 2ArgTest Everything)
  13. if(SAF_INTENTIONAL_COMPILE_ERROR)
  14. add_executable(ice intentional_compile_error.cxx)
  15. endif()
  16. if(SAF_INTENTIONAL_COMPILE_WARNING)
  17. add_executable(icw intentional_compile_warning.cxx)
  18. endif()