mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:40:53 +01:00
51 lines
1.1 KiB
Lua
51 lines
1.1 KiB
Lua
|
|
-- This function defines the core component idoms
|
||
|
|
function component(name)
|
||
|
|
target(name)
|
||
|
|
set_kind("static")
|
||
|
|
set_group("Components")
|
||
|
|
add_configfiles("BuildInfo.h.in")
|
||
|
|
add_includedirs(
|
||
|
|
".",
|
||
|
|
"../",
|
||
|
|
"../../",
|
||
|
|
"../../../build",
|
||
|
|
{public = true})
|
||
|
|
add_headerfiles("**.h")
|
||
|
|
add_files("**.cpp")
|
||
|
|
add_packages(
|
||
|
|
"tiltedcore",
|
||
|
|
"hopscotch-map",
|
||
|
|
"gtest",
|
||
|
|
"spdlog")
|
||
|
|
end
|
||
|
|
|
||
|
|
-- this isnt fully specified yet.
|
||
|
|
function unittest(name)
|
||
|
|
target(name .. "_Tests")
|
||
|
|
set_kind("binary")
|
||
|
|
set_group("Tests")
|
||
|
|
add_configfiles("BuildInfo.h.in")
|
||
|
|
add_includedirs(
|
||
|
|
".",
|
||
|
|
"../",
|
||
|
|
"../../",
|
||
|
|
"../../../build",
|
||
|
|
{public = true})
|
||
|
|
add_headerfiles(
|
||
|
|
"**.h")
|
||
|
|
add_files(
|
||
|
|
"**.cpp",
|
||
|
|
"../../TestMain.cpp")
|
||
|
|
add_packages(
|
||
|
|
"tiltedcore",
|
||
|
|
"hopscotch-map",
|
||
|
|
"gtest",
|
||
|
|
"spdlog")
|
||
|
|
end
|
||
|
|
|
||
|
|
-- List all components required below:
|
||
|
|
includes("console")
|
||
|
|
includes("imgui")
|
||
|
|
includes("es_loader")
|
||
|
|
includes("crash_handler")
|
||
|
|
includes("resources")
|