2023-01-10 10:49:57 -07:00
|
|
|
add_library(test_lib INTERFACE)
|
|
|
|
if(MINGW)
|
|
|
|
target_link_libraries(test_lib INTERFACE -municode)
|
|
|
|
endif()
|
|
|
|
if(WIN32)
|
|
|
|
target_compile_definitions(test_lib INTERFACE MSWIN)
|
|
|
|
endif()
|
2024-01-19 05:21:25 -07:00
|
|
|
target_link_libraries(test_lib INTERFACE nvim_bin)
|
2015-04-13 20:53:16 -07:00
|
|
|
|
2023-01-10 10:49:57 -07:00
|
|
|
add_executable(tty-test EXCLUDE_FROM_ALL tty-test.c)
|
2019-10-18 07:32:56 -07:00
|
|
|
add_executable(shell-test EXCLUDE_FROM_ALL shell-test.c)
|
2022-06-22 05:51:52 -07:00
|
|
|
# Fake pwsh (powershell) for testing make_filter_cmd(). #16271
|
|
|
|
add_executable(pwsh-test EXCLUDE_FROM_ALL shell-test.c)
|
2019-10-18 07:32:56 -07:00
|
|
|
add_executable(printargs-test EXCLUDE_FROM_ALL printargs-test.c)
|
|
|
|
add_executable(printenv-test EXCLUDE_FROM_ALL printenv-test.c)
|
|
|
|
add_executable(streams-test EXCLUDE_FROM_ALL streams-test.c)
|
2023-01-10 10:49:57 -07:00
|
|
|
|
|
|
|
target_link_libraries(tty-test PRIVATE test_lib)
|
|
|
|
target_link_libraries(shell-test PRIVATE test_lib)
|
|
|
|
target_link_libraries(pwsh-test PRIVATE test_lib)
|
|
|
|
target_link_libraries(printargs-test PRIVATE test_lib)
|
|
|
|
target_link_libraries(printenv-test PRIVATE test_lib)
|
|
|
|
target_link_libraries(streams-test PRIVATE test_lib)
|