summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/plugins/project/cmake/cmakelists.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua
index 4cd533fc5..c207863b2 100644
--- a/xmake/plugins/project/cmake/cmakelists.lua
+++ b/xmake/plugins/project/cmake/cmakelists.lua
@@ -144,6 +144,9 @@ function _add_target_sources(cmakelists, target)
for _, sourcefile in ipairs(target:sourcefiles()) do
cmakelists:print(" " .. _get_unix_path(sourcefile))
end
+ for _, headerfile in ipairs(target:headerfiles()) do
+ cmakelists:print(" " .. _get_unix_path(headerfile))
+ end
cmakelists:print(")")
end