29 lines
760 B
Lua
29 lines
760 B
Lua
|
|
set_languages("cxx20")
|
||
|
|
target("zcoro")
|
||
|
|
set_kind("static")
|
||
|
|
add_includedirs("include", {public = true})
|
||
|
|
add_files("src/**/*.cpp")
|
||
|
|
add_headerfiles("include/**/*.h")
|
||
|
|
target("zcoro_test")
|
||
|
|
set_kind("binary")
|
||
|
|
add_deps("zcoro")
|
||
|
|
add_files("main.cpp")
|
||
|
|
-- target("zcoro_test01_mutex")
|
||
|
|
-- set_kind("binary")
|
||
|
|
-- add_deps("zcoro")
|
||
|
|
-- add_files("test/01mutex.cpp")
|
||
|
|
|
||
|
|
-- target("zcoro_test02_condition")
|
||
|
|
-- set_kind("binary")
|
||
|
|
-- add_deps("zcoro")
|
||
|
|
-- add_files("test/02condition.cpp")
|
||
|
|
|
||
|
|
target("zcoro_test03_semaphore")
|
||
|
|
set_kind("binary")
|
||
|
|
add_deps("zcoro")
|
||
|
|
add_files("test/03semaphore.cpp")
|
||
|
|
|
||
|
|
-- target("zcoro_test04_promise")
|
||
|
|
-- set_kind("binary")
|
||
|
|
-- add_deps("zcoro")
|
||
|
|
-- add_files("test/04promise.cpp")
|