CMakeLists.txt 888 B

123456789101112131415161718192021
  1. add_library(test_lib INTERFACE)
  2. if(WIN32)
  3. target_compile_definitions(test_lib INTERFACE MSWIN)
  4. endif()
  5. target_link_libraries(test_lib INTERFACE nvim_bin)
  6. add_executable(tty-test EXCLUDE_FROM_ALL tty-test.c)
  7. add_executable(shell-test EXCLUDE_FROM_ALL shell-test.c)
  8. # Fake pwsh (powershell) for testing make_filter_cmd(). #16271
  9. add_executable(pwsh-test EXCLUDE_FROM_ALL shell-test.c)
  10. add_executable(printargs-test EXCLUDE_FROM_ALL printargs-test.c)
  11. add_executable(printenv-test EXCLUDE_FROM_ALL printenv-test.c)
  12. add_executable(streams-test EXCLUDE_FROM_ALL streams-test.c)
  13. target_link_libraries(tty-test PRIVATE test_lib)
  14. target_link_libraries(shell-test PRIVATE test_lib)
  15. target_link_libraries(pwsh-test PRIVATE test_lib)
  16. target_link_libraries(printargs-test PRIVATE test_lib)
  17. target_link_libraries(printenv-test PRIVATE test_lib)
  18. target_link_libraries(streams-test PRIVATE test_lib)