summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Seizilles de Mazancourt <[email protected]>2020-12-24 00:22:50 +0100
committerCharles Seizilles de Mazancourt <[email protected]>2020-12-24 00:22:50 +0100
commit519eadf34afbfc885e4f18e6ed74330c2dd6aaf8 (patch)
treeae56dc086b35d9c719cc53fb6a6bdd2e299517d6
parent243ddec82d865010efcc35d0989c5fdffb0dff84 (diff)
improve to generate cmake
-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