CMakeLists.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. project(nnxx_tests)
  2. include(CTest)
  3. message(STATUS ${EXECUTABLE_OUTPUT_PATH})
  4. add_executable(test_message ./test_message.cpp)
  5. target_link_libraries(test_message nnxx)
  6. add_test(message ${EXECUTABLE_OUTPUT_PATH}/test_message)
  7. add_executable(test_message_istream ./test_message_istream.cpp)
  8. target_link_libraries(test_message_istream nnxx)
  9. add_test(message_istream ${EXECUTABLE_OUTPUT_PATH}/test_message_istream)
  10. add_executable(test_message_ostream ./test_message_ostream.cpp)
  11. target_link_libraries(test_message_ostream nnxx)
  12. add_test(message_ostream ${EXECUTABLE_OUTPUT_PATH}/test_message_ostream)
  13. add_executable(test_nnxx_ext ./test_nnxx_ext.cpp)
  14. target_link_libraries(test_nnxx_ext nnxx)
  15. add_test(nnxx_ext ${EXECUTABLE_OUTPUT_PATH}/test_nnxx_ext)
  16. add_executable(test_pair ./test_pair.cpp)
  17. target_link_libraries(test_pair nnxx)
  18. add_test(pair ${EXECUTABLE_OUTPUT_PATH}/test_pair)
  19. add_executable(test_pipeline ./test_pipeline.cpp)
  20. target_link_libraries(test_pipeline nnxx)
  21. add_test(pipeline ${EXECUTABLE_OUTPUT_PATH}/test_pipeline)
  22. add_executable(test_poll ./test_poll.cpp)
  23. target_link_libraries(test_poll nnxx)
  24. add_test(poll ${EXECUTABLE_OUTPUT_PATH}/test_poll)
  25. add_executable(test_pubsub ./test_pubsub.cpp)
  26. target_link_libraries(test_pubsub nnxx)
  27. add_test(pubsub ${EXECUTABLE_OUTPUT_PATH}/test_pubsub)
  28. add_executable(test_readme ./test_readme.cpp)
  29. target_link_libraries(test_readme nnxx)
  30. add_test(readme ${EXECUTABLE_OUTPUT_PATH}/test_readme)
  31. add_executable(test_reqrep ./test_reqrep.cpp)
  32. target_link_libraries(test_reqrep nnxx)
  33. add_test(reqrep ${EXECUTABLE_OUTPUT_PATH}/test_reqrep)
  34. add_executable(test_reqrep_multi ./test_reqrep_multi.cpp)
  35. target_link_libraries(test_reqrep_multi nnxx)
  36. add_test(reqrep_multi ${EXECUTABLE_OUTPUT_PATH}/test_reqrep_multi)
  37. add_executable(test_socket ./test_socket.cpp)
  38. target_link_libraries(test_socket nnxx)
  39. add_test(socket ${EXECUTABLE_OUTPUT_PATH}/test_socket)
  40. add_executable(test_survey ./test_survey.cpp)
  41. target_link_libraries(test_survey nnxx)
  42. add_test(survey ${EXECUTABLE_OUTPUT_PATH}/test_survey)
  43. add_executable(test_timeout ./test_timeout.cpp)
  44. target_link_libraries(test_timeout nnxx)
  45. add_test(timeout ${EXECUTABLE_OUTPUT_PATH}/test_timeout)