summaryrefslogtreecommitdiff
path: root/tests/projects/c/headeronly/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-16 23:18:53 +0800
committerruki <[email protected]>2021-10-16 23:18:53 +0800
commit194e8abb709553c79d5ee34d9bd4a714aa3004d7 (patch)
tree919729e21b2c434e63d3d8d671fdc83adebf53b5 /tests/projects/c/headeronly/xmake.lua
parentbbe1a5c2f7418d085304d1dcd0462cf4b2193497 (diff)
add headeronly kind for target
Diffstat (limited to 'tests/projects/c/headeronly/xmake.lua')
-rw-r--r--tests/projects/c/headeronly/xmake.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/projects/c/headeronly/xmake.lua b/tests/projects/c/headeronly/xmake.lua
new file mode 100644
index 000000000..d43bdceda
--- /dev/null
+++ b/tests/projects/c/headeronly/xmake.lua
@@ -0,0 +1,9 @@
+add_rules("mode.release", "mode.debug")
+
+target("foo")
+ set_kind("headeronly")
+ add_headerfiles("src/foo.h")
+ add_rules("utils.install.cmake_importfiles")
+ add_rules("utils.install.pkgconfig_importfiles")
+
+