hikyuu2/hikyuu_cpp/demo/xmake.lua

30 lines
581 B
Lua
Raw Normal View History

2018-09-09 16:43:04 +08:00
option("with-demo")
set_default(false)
set_showmenu(true)
set_category("hikyuu")
set_description("Complie with demo")
option_end()
target("demo")
2018-09-09 16:43:04 +08:00
if has_config("with-demo") then
set_kind("binary")
else
set_kind("phony")
end
if is_plat("windows") then
add_cxflags("-wd4267")
end
if is_plat("windows") then
add_defines("HKU_API=__declspec(dllimport)")
add_defines("SQLITE_API=__declspec(dllimport)")
end
-- add files
add_files("./*.cpp")
add_deps("hikyuu")
2018-09-09 16:43:04 +08:00
target_end()