2014-04-30 02:10:37 -07:00
|
|
|
local module = {}
|
|
|
|
|
|
|
|
module.include_paths = {}
|
|
|
|
for p in ("${TEST_INCLUDE_DIRS}" .. ";"):gmatch("[^;]+") do
|
|
|
|
table.insert(module.include_paths, p)
|
|
|
|
end
|
|
|
|
|
2017-04-08 15:55:19 -07:00
|
|
|
module.test_build_dir = "${CMAKE_BINARY_DIR}"
|
2015-09-22 05:03:27 -07:00
|
|
|
module.test_source_path = "${CMAKE_SOURCE_DIR}"
|
2017-03-11 13:13:09 -07:00
|
|
|
module.test_lua_prg = "${LUA_PRG}"
|
|
|
|
module.test_luajit_prg = ""
|
|
|
|
if module.test_luajit_prg == '' then
|
|
|
|
if module.test_lua_prg:sub(-6) == 'luajit' then
|
|
|
|
module.test_luajit_prg = module.test_lua_prg
|
|
|
|
else
|
|
|
|
module.test_luajit_prg = nil
|
|
|
|
end
|
|
|
|
end
|
2014-05-10 06:24:13 -07:00
|
|
|
table.insert(module.include_paths, "${CMAKE_BINARY_DIR}/include")
|
2021-08-21 04:55:12 -07:00
|
|
|
table.insert(module.include_paths, "${CMAKE_BINARY_DIR}/src/nvim/auto")
|
2014-04-30 02:10:37 -07:00
|
|
|
|
|
|
|
return module
|