diff options
| author | ruki <[email protected]> | 2021-12-21 11:28:30 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-21 11:28:30 +0800 |
| commit | d20addbf37d7ddf32e5b1943a641d7e4072d32fb (patch) | |
| tree | bd5b5b024372040b144ebbef24ad424e24f4187b /tests/projects | |
| parent | fde9f472906c2b7061afa5afed4128817ffd15c1 (diff) | |
| parent | ce000fa3f72ea6c4ca684a3d08b1e6cf09f5fb68 (diff) | |
Merge pull request #1931 from xmake-io/vcpkg
Support vcpkg manifest mode
Diffstat (limited to 'tests/projects')
| -rw-r--r-- | tests/projects/package/vcpkg_manifest/.gitignore | 8 | ||||
| -rw-r--r-- | tests/projects/package/vcpkg_manifest/src/main.cpp | 9 | ||||
| -rw-r--r-- | tests/projects/package/vcpkg_manifest/xmake.lua | 9 |
3 files changed, 26 insertions, 0 deletions
diff --git a/tests/projects/package/vcpkg_manifest/.gitignore b/tests/projects/package/vcpkg_manifest/.gitignore new file mode 100644 index 000000000..152105761 --- /dev/null +++ b/tests/projects/package/vcpkg_manifest/.gitignore @@ -0,0 +1,8 @@ +# Xmake cache +.xmake/ +build/ + +# MacOS Cache +.DS_Store + + diff --git a/tests/projects/package/vcpkg_manifest/src/main.cpp b/tests/projects/package/vcpkg_manifest/src/main.cpp new file mode 100644 index 000000000..7c435d251 --- /dev/null +++ b/tests/projects/package/vcpkg_manifest/src/main.cpp @@ -0,0 +1,9 @@ +#include <iostream> + +using namespace std; + +int main(int argc, char** argv) +{ + cout << "hello world!" << endl; + return 0; +} diff --git a/tests/projects/package/vcpkg_manifest/xmake.lua b/tests/projects/package/vcpkg_manifest/xmake.lua new file mode 100644 index 000000000..5c08f2869 --- /dev/null +++ b/tests/projects/package/vcpkg_manifest/xmake.lua @@ -0,0 +1,9 @@ +add_requires("vcpkg::zlib 1.2.11") +add_requires("vcpkg::fmt >=8.0.1", {configs = {baseline = "50fd3d9957195575849a49fa591e645f1d8e7156"}}) +add_requires("vcpkg::libpng", {configs = {features = {"apng"}}}) + +target("test") + set_kind("binary") + add_files("src/*.cpp") + add_packages("vcpkg::zlib", "vcpkg::fmt", "vcpkg::libpng") + |
