summaryrefslogtreecommitdiff
path: root/tests/projects/package/cmake/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-17 00:53:13 +0800
committerruki <[email protected]>2021-12-17 00:53:13 +0800
commit1bb127c6ddb9ca7928f827f04160dde828e54925 (patch)
tree89eba30db8ec8dd415c8616b7823da720958776c /tests/projects/package/cmake/xmake.lua
parent8512b8200ac982c4075c4707c3b2971c73159c9f (diff)
improve cmake find_pacakge
Diffstat (limited to 'tests/projects/package/cmake/xmake.lua')
-rw-r--r--tests/projects/package/cmake/xmake.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/projects/package/cmake/xmake.lua b/tests/projects/package/cmake/xmake.lua
new file mode 100644
index 000000000..48aa74660
--- /dev/null
+++ b/tests/projects/package/cmake/xmake.lua
@@ -0,0 +1,11 @@
+add_rules("mode.debug", "mode.release")
+
+add_requires("cmake::ZLIB", {system = true})
+add_requires("cmake::Boost", {system = true,
+ configs = {components = {"regex", "system"}, presets = {Boost_USE_STATIC_LIB = true}}})
+target("test")
+ set_kind("binary")
+ add_files("src/*.cpp")
+ add_packages("cmake::ZLIB", "cmake::Boost")
+
+