mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-04 12:57:45 +08:00
33 lines
647 B
Lua
33 lines
647 B
Lua
option("with-demo")
|
|
set_default(false)
|
|
set_showmenu(true)
|
|
set_category("hikyuu")
|
|
set_description("Complie with demo")
|
|
option_end()
|
|
|
|
target("demo")
|
|
set_kind("binary")
|
|
if is_mode("debug") then
|
|
set_default(false)
|
|
end
|
|
|
|
add_packages("spdlog", "fmt")
|
|
add_includedirs("..")
|
|
|
|
if is_plat("windows") then
|
|
add_cxflags("-wd4267")
|
|
end
|
|
|
|
if is_plat("windows") and is_mode("release") then
|
|
add_defines("HKU_API=__declspec(dllimport)")
|
|
add_defines("SQLITE_API=__declspec(dllimport)")
|
|
end
|
|
|
|
-- add files
|
|
add_files("./*.cpp")
|
|
|
|
add_deps("hikyuu")
|
|
|
|
target_end()
|
|
|