Skip to content
Discussion options

You must be logged in to vote

try

    on_test(function (package)
        local qt = assert(import("detect.sdks.find_qt")(), "qt not found!")
        local qtcore_includedir = path.join(qt.includedir, "QtCore")
        assert(package:has_cxxtypes("QCoro::Task<QString>", {includes = "qcoro/task.h",
            configs = {includedirs = {qt.includedir, qtcore_includedir},
                       links = "Qt5Core",
                       languages = "c++2a",
                       cxxflags = {"-fPIC", "-fcoroutines", "-fconcepts"}}}))
    end)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ohmree
Comment options

Answer selected by ohmree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants