mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00

This allows us to avoid hard-coding paths and using environment variables to communicate key information to unit tests, which fits with the overall goal of making sure that folks driving CMake directly can continue to do out-of-tree builds.
12 lines
283 B
Lua
12 lines
283 B
Lua
local module = {}
|
|
|
|
module.include_paths = {}
|
|
for p in ("${TEST_INCLUDE_DIRS}" .. ";"):gmatch("[^;]+") do
|
|
table.insert(module.include_paths, p)
|
|
end
|
|
|
|
module.test_include_path = "${CMAKE_BINARY_DIR}/test/includes/post"
|
|
module.test_libnvim_path = "${TEST_LIBNVIM_PATH}"
|
|
|
|
return module
|