ISP/xmake.lua

22 lines
506 B
Lua

--- Generate compile_commands.json for clangd language server
add_rules("plugin.compile_commands.autoupdate", {outputdir = ".vscode"})
--- Get C/C++ Lib Path
local INCLUDE_DIRS = path.splitenv(
string.vformat("$(env VERILATOR_INCLUDE):$(env SYSTEMC_INCLUDE)")
)
target("TB_ISP")
set_toolchains("gcc")
set_languages("c++17")
--- C/C++ Codes
add_files(
"src/**.cpp"
)
--- Include directories
add_includedirs(
".",
"src",
"obj_dir",
"src/img_process",
INCLUDE_DIRS
)