CMakeLists.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # ====================================================================
  2. # programs;
  3. # --------------------------------------------------------------------
  4. add_executable(int6kuart int6kuart.c)
  5. add_executable(int6kbaud int6kbaud.c)
  6. add_executable(int6kdetect int6kdetect.c)
  7. add_executable(ptsctl ptsctl.c)
  8. add_executable(weeder weeder.c)
  9. if (NOT WIN32)
  10. add_executable(ttycat ttycat.c)
  11. add_executable(ttysend ttysend.c)
  12. add_executable(ttysig ttysig.c)
  13. add_executable(ttyrecv ttyrecv.c)
  14. endif (NOT WIN32)
  15. # ====================================================================
  16. # dependencies;
  17. # --------------------------------------------------------------------
  18. target_link_libraries(int6kuart serial tools)
  19. target_link_libraries(int6kbaud serial tools)
  20. target_link_libraries(int6kdetect serial tools)
  21. target_link_libraries(ptsctl tools)
  22. target_link_libraries(weeder tools)
  23. target_link_libraries(relay tools)
  24. if (NOT WIN32)
  25. target_link_libraries(ttycat serial tools)
  26. target_link_libraries(ttyrecv serial tools)
  27. target_link_libraries(ttysend serial tools)
  28. target_link_libraries(ttysig tools)
  29. endif (NOT WIN32)
  30. # ====================================================================
  31. # libraries;
  32. # --------------------------------------------------------------------
  33. set(SERIAL_SRC serial.c openport.c closeport.c)
  34. if (NOT WIN32)
  35. set(SERIAL_SRC ${SERIAL_SRC} baudrate.c)
  36. endif (NOT WIN32)
  37. add_library(serial ${SERIAL_SRC})