summaryrefslogtreecommitdiff
path: root/tests/projects/c++/snippet_runtimes/xmake.lua
blob: 8ef59ed4f731763ddcb62c97f637f37e9fb13d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
add_repositories("my-repo my-repo")
add_requires("bar")

target("foo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("bar")

    on_config(function(target)
         assert(target:check_cxxsnippets({test = [[
             #include <iostream>
             void test() {
                 std::cout << _LIBCPP_VERSION << std::endl;
             }
         ]]}, {configs = {languages = "c++17"}}))
    end)