CMakeLists.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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(10-udp+ip 10-udp+ip.cpp)
  29. target_link_libraries(10-udp+ip test_lib)
  30. add_test(10-udp+ip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/10-udp+ip")
  31. add_executable(11-udp-connection 11-udp-connection.cpp)
  32. target_link_libraries(11-udp-connection test_lib)
  33. add_test(11-udp-connection "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/11-udp-connection")
  34. add_executable(12-udp-receiver 12-udp-receiver.cpp)
  35. target_link_libraries(12-udp-receiver test_lib)
  36. add_test(12-udp-receiver "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/12-udp-receiver")
  37. add_executable(13-udp+ip+slip 13-udp+ip+slip.cpp)
  38. target_link_libraries(13-udp+ip+slip test_lib)
  39. add_test(13-udp+ip+slip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/13-udp+ip+slip")
  40. add_executable(20-icmp+ip 20-icmp+ip.cpp)
  41. target_link_libraries(20-icmp+ip test_lib)
  42. add_test(20-icmp+ip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/20-icmp+ip")
  43. add_executable(90-full-slip 90-full-slip.cpp)
  44. target_link_libraries(90-full-slip test_lib)
  45. add_test(90-full-slip "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/90-full-slip")