From 519eadf34afbfc885e4f18e6ed74330c2dd6aaf8 Mon Sep 17 00:00:00 2001 From: Charles Seizilles de Mazancourt Date: Thu, 24 Dec 2020 00:22:50 +0100 Subject: improve to generate cmake --- xmake/plugins/project/cmake/cmakelists.lua | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.3.1