hikyuu2/hikyuu_cpp/demo/xmake.lua

33 lines
647 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")
2020-04-08 00:24:12 +08:00
set_kind("binary")
if is_mode("debug") then
set_default(false)
2018-09-09 16:43:04 +08:00
end
2020-04-08 00:24:12 +08:00
add_packages("spdlog", "fmt")
2019-06-04 23:13:32 +08:00
add_includedirs("..")
if is_plat("windows") then
add_cxflags("-wd4267")
end
2020-04-08 00:24:12 +08:00
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")
2018-09-09 17:45:22 +08:00
2018-09-09 16:43:04 +08:00
target_end()