CMakeLists.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. function(add_catch_test name)
  2. add_executable("test_${name}" main.cpp "${name}.cpp")
  3. add_test("test_${name}" "test_${name}")
  4. target_include_directories("test_${name}"
  5. SYSTEM BEFORE PUBLIC
  6. ${CATCH_INCLUDE_DIRS}
  7. )
  8. endfunction()
  9. add_catch_test(time)
  10. target_link_libraries(test_time time)
  11. add_catch_test(class_init)
  12. add_catch_test(node)
  13. target_link_libraries(test_node nodes time)
  14. add_catch_test(node_tree)
  15. target_link_libraries(test_node_tree document time)
  16. add_catch_test(serialize)
  17. target_link_libraries(test_serialize nodes time)
  18. add_catch_test(parse)
  19. target_link_libraries(test_parse time)
  20. add_catch_test(actions)
  21. target_link_libraries(test_actions nodes time)
  22. add_catch_test(notify)
  23. target_link_libraries(test_notify document time)
  24. add_catch_test(list_nodes)
  25. target_link_libraries(test_list_nodes nodes time)
  26. add_catch_test(time_nodes)
  27. target_link_libraries(test_time_nodes nodes time)
  28. add_catch_test(dynamic_node)
  29. target_link_libraries(test_dynamic_node nodes time)
  30. add_catch_test(type_constraint)
  31. add_catch_test(link_storage)
  32. target_link_libraries(test_link_storage document time)
  33. add_catch_test(new_node)
  34. target_link_libraries(test_new_node document time)
  35. ## New node tests
  36. add_executable(node_tester node_tester.cpp)
  37. target_link_libraries(node_tester nodes time filters)
  38. function(add_node_test name)
  39. add_test(node_tester_${name} node_tester "${CMAKE_CURRENT_SOURCE_DIR}/data/${name}.rnite")
  40. endfunction()
  41. add_node_test(sanity)
  42. add_node_test(serialize)
  43. add_node_test(boolean)
  44. add_node_test(dynamic)
  45. add_node_test(numeric)
  46. add_node_test(frames)
  47. add_node_test(interpolate)
  48. add_node_test(notags)
  49. add_node_test(to_string)