paths.lua.in 612 B

123456789101112131415161718192021222324
  1. local M = {}
  2. M.include_paths = {}
  3. for p in ("${TEST_INCLUDE_DIRS}" .. ";"):gmatch("[^;]+") do
  4. table.insert(M.include_paths, p)
  5. end
  6. M.vterm_test_file = "${VTERM_TEST_FILE}"
  7. M.test_build_dir = "${CMAKE_BINARY_DIR}"
  8. M.test_source_path = "${CMAKE_SOURCE_DIR}"
  9. M.test_lua_prg = "${LUA_PRG}"
  10. M.test_luajit_prg = ""
  11. if M.test_luajit_prg == '' then
  12. if M.test_lua_prg:sub(-6) == 'luajit' then
  13. M.test_luajit_prg = M.test_lua_prg
  14. else
  15. M.test_luajit_prg = nil
  16. end
  17. end
  18. table.insert(M.include_paths, "${CMAKE_BINARY_DIR}/include")
  19. table.insert(M.include_paths, "${CMAKE_BINARY_DIR}/src/nvim/auto")
  20. return M