summaryrefslogtreecommitdiff
path: root/tests/projects
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-20 22:59:51 +0800
committerruki <[email protected]>2021-12-20 22:59:51 +0800
commit4b139c33e84d6f2261bea3ec07ec889b44cebd96 (patch)
tree8889ca853f71429464e6222e25a7002eeef1daa6 /tests/projects
parentfde9f472906c2b7061afa5afed4128817ffd15c1 (diff)
add vcpkg tests for manifest
Diffstat (limited to 'tests/projects')
-rw-r--r--tests/projects/package/vcpkg_manifest/.gitignore8
-rw-r--r--tests/projects/package/vcpkg_manifest/src/main.cpp9
-rw-r--r--tests/projects/package/vcpkg_manifest/xmake.lua8
3 files changed, 25 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..a10ec2347
--- /dev/null
+++ b/tests/projects/package/vcpkg_manifest/xmake.lua
@@ -0,0 +1,8 @@
+add_requires("vcpkg::zlib 1.2.11", "vcpkg::fmt >=8.0.1")
+--add_requires("vcpkg::boost", {alias = "boost", {configs = {}}})
+
+target("test")
+ set_kind("binary")
+ add_files("src/*.cpp")
+ add_packages("vcpkg::zlib", "vcpkg::fmt", "boost")
+