CMakeLists.txt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. cmake_minimum_required(VERSION 3.8)
  2. add_library(test_lib STATIC
  3. test-main.cpp
  4. test-utils.cpp
  5. )
  6. target_link_libraries(test_lib limbo)
  7. add_executable(00-details 00-details.cpp)
  8. target_link_libraries(00-details test_lib)
  9. add_test(00-details "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/00-details")
  10. add_executable(01-ip 01-ip.cpp)
  11. target_link_libraries(01-ip test_lib)
  12. add_test(01-ip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/01-ip")
  13. add_executable(02-udp 02-udp.cpp)
  14. target_link_libraries(02-udp test_lib)
  15. add_test(02-udp "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/02-udp")
  16. add_executable(03-slip 03-slip.cpp)
  17. target_link_libraries(03-slip test_lib)
  18. add_test(03-slip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/03-slip")
  19. add_executable(04-ip+slip 04-ip+slip.cpp)
  20. target_link_libraries(04-ip+slip test_lib)
  21. add_test(04-ip+slip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/04-ip+slip")
  22. add_executable(05-ethernet 05-ethernet.cpp)
  23. target_link_libraries(05-ethernet test_lib)
  24. add_test(05-ethernet "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/05-ethernet")
  25. add_executable(06-arp 06-arp.cpp)
  26. target_link_libraries(06-arp test_lib)
  27. add_test(06-arp "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/06-arp")
  28. add_executable(07-arp+ethernet 07-arp+ethernet.cpp)
  29. target_link_libraries(07-arp+ethernet test_lib)
  30. add_test(07-arp+ethernet "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/07-arp+ethernet")
  31. add_executable(10-udp+ip 10-udp+ip.cpp)
  32. target_link_libraries(10-udp+ip test_lib)
  33. add_test(10-udp+ip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/10-udp+ip")
  34. add_executable(11-udp-connection 11-udp-connection.cpp)
  35. target_link_libraries(11-udp-connection test_lib)
  36. add_test(11-udp-connection "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/11-udp-connection")
  37. add_executable(12-udp-receiver 12-udp-receiver.cpp)
  38. target_link_libraries(12-udp-receiver test_lib)
  39. add_test(12-udp-receiver "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/12-udp-receiver")
  40. add_executable(13-udp+ip+slip 13-udp+ip+slip.cpp)
  41. target_link_libraries(13-udp+ip+slip test_lib)
  42. add_test(13-udp+ip+slip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/13-udp+ip+slip")
  43. add_executable(20-icmp+ip 20-icmp+ip.cpp)
  44. target_link_libraries(20-icmp+ip test_lib)
  45. add_test(20-icmp+ip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/20-icmp+ip")
  46. add_executable(30-customization 30-customization.cpp)
  47. target_link_libraries(30-customization test_lib)
  48. add_test(30-customization "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/30-customization")
  49. add_executable(90-full-slip 90-full-slip.cpp)
  50. target_link_libraries(90-full-slip test_lib)
  51. add_test(90-full-slip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/90-full-slip")
  52. add_executable(91-full-ethernet 91-full-ethernet.cpp)
  53. target_link_libraries(91-full-ethernet test_lib)
  54. add_test(91-full-ethernet "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/91-full-ethernet")