summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-24 09:00:48 +0800
committerGitHub <[email protected]>2020-12-24 09:00:48 +0800
commit9d1ea2ecbc19153c1fcc2355aab3e6e09cbe7b12 (patch)
treeae56dc086b35d9c719cc53fb6a6bdd2e299517d6
parent243ddec82d865010efcc35d0989c5fdffb0dff84 (diff)
parent519eadf34afbfc885e4f18e6ed74330c2dd6aaf8 (diff)
Merge pull request #1158 from WubiCookie/master
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