hikyuu2/hikyuu_cpp/demo/xmake.lua
2020-04-08 00:24:12 +08:00

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()