Improve packages

This commit is contained in:
Jérôme Leclercq
2021-07-29 18:08:07 +02:00
parent 8397fd257b
commit 800028a21f
6 changed files with 106 additions and 7 deletions

View File

@@ -28,6 +28,7 @@ package("nodeeditor")
if qt then
table.insert(configs, "-DQt5_DIR=" .. path.join(qt.libdir, "cmake", "Qt5"))
end
import("package.tools.cmake").install(package, configs)
end)
@@ -37,5 +38,5 @@ package("nodeeditor")
QtNodes::FlowScene scene(std::make_shared<QtNodes::DataModelRegistry>());
QtNodes::FlowView view(&scene);
}
]]}, {configs = {languages = "c++11"}, includes = {"nodes/FlowScene", "nodes/FlowView"}}))
]]}, {configs = {languages = "c++14", cxflags = not package:is_plat("windows") and "-fPIC" or nil}, includes = {"nodes/FlowScene", "nodes/FlowView"}}))
end)