Skip to content

Instantly share code, notes, and snippets.

@zelid zelid/hello.cpp
Created Sep 10, 2019

Embed
What would you like to do?
Trivial xmake dependency
#include <iostream>
#include <string>
#include <zlib.h">
// #include <zlib/zlib.h>
using namespace std;
int main()
{
cout << "Hello, World!";
return 0;
}
set_project("tubi")
set_warnings("all")
set_languages("c99", "cxx20")
add_rules("mode.debug", "mode.release")
if is_kind("static") then
add_ldflags("-static", "-lpthread", {force = true})
end
add_repositories("tubi-repo repo")
add_requires("zlib", {system = false})
target("hello")
add_packages("zlib")
set_kind("binary")
add_files("src/*.cpp")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.