<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">Hi,<br><br>There is this existing big project which is based on autotools and I am trying to simply include the existing make files into my cmake project (don't even mention the possibility of converting the whole thing to cmake, this is the project owners problem). I was able to sucessfully implement this inclusion manually and this is what I mean by 'manually':<br><br>After generating the cmake output for a unix-like project, for the target of interest this file needs to be edited:<br><br>/CMakeFiles/[target].dir/build.make<br><br>The editing simply involves 2 modifications:<br><br>(1) Somewhere in this file the include line for the existing make file is added.<br><br>(2) Somewhere in the compile command all the flags from the existing make file, stored in one single variable $(EXISTING_MAKE_FLAGS), is added.<br><br>The above works fine, the only pain is that I have to edit the build.make file every time I re-run the cmake command. The question is, how can this be automated by cmake commands?<br><br><br>-Ali<br></div><br /><hr />Think you know your TV, music and film? <a href='https://www.searchcharades.com' target='_new'>Try Search Charades!</a></body>
</html>