diff options
| author | ruki <[email protected]> | 2021-12-17 00:55:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-12-17 00:55:21 +0800 |
| commit | 0fdd42e56f478591a4876866af833273f2cc244f (patch) | |
| tree | a3600c55c3372d5cb7a420b3e8dc756f91008867 /tests/projects | |
| parent | 0644c09d6c75a669f976f8d4bf67041c83c3f1d4 (diff) | |
add vcpkg tests
Diffstat (limited to 'tests/projects')
| -rw-r--r-- | tests/projects/package/vcpkg/.gitignore | 8 | ||||
| -rw-r--r-- | tests/projects/package/vcpkg/src/main.cpp | 9 | ||||
| -rw-r--r-- | tests/projects/package/vcpkg/xmake.lua | 8 |
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/projects/package/vcpkg/.gitignore b/tests/projects/package/vcpkg/.gitignore new file mode 100644 index 000000000..152105761 --- /dev/null +++ b/tests/projects/package/vcpkg/.gitignore @@ -0,0 +1,8 @@ +# Xmake cache +.xmake/ +build/ + +# MacOS Cache +.DS_Store + + diff --git a/tests/projects/package/vcpkg/src/main.cpp b/tests/projects/package/vcpkg/src/main.cpp new file mode 100644 index 000000000..7c435d251 --- /dev/null +++ b/tests/projects/package/vcpkg/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/xmake.lua b/tests/projects/package/vcpkg/xmake.lua new file mode 100644 index 000000000..3f5dbcf55 --- /dev/null +++ b/tests/projects/package/vcpkg/xmake.lua @@ -0,0 +1,8 @@ +add_requires("vcpkg::zlib", "vcpkg::pcre2") +add_requires("vcpkg::boost[core]", {alias = "boost"}) + +target("test") + set_kind("binary") + add_files("src/*.cpp") + add_packages("vcpkg::zlib", "vcpkg::pcre2", "boost") + |
