<div dir="ltr">I have the following build structure:<div><br></div><div>workspace/</div><div> CMakeLists.txt # top level cmake</div><div> component_a/</div><div> CMakeLists.txt # component cmake</div><div>
src/ # source in here</div><div> component_b/</div><div> CMakeLists.txt # component cmake<br></div><div> src/ # source in here<br></div><div><br></div><div>Now, I'm trying to implement a multi-stage build which does the following:</div>
<div>1) builds some external third-party dependencies.</div><div>2) auto-generate some code</div><div>3) build the source</div><div>4) package the result</div><div><br></div><div>To do this, I'd like to implement some top level build targets in cmake, so I can run make auto_generate, make third_party, etc. </div>
<div><br></div><div>I can see a couple different potential ways to do this, but I've not been able to google up documentation that discusses the best method for implementing this. How are folks generally approaching this top level build target issue? </div>
<div><br></div><div> Do you have a top level add_custom_target that then calls each subdirectories custom target of the same name, or is there some cmake feature that supports this that I have not yet discovered?</div><div>
<br></div><div><br></div><div><br clear="all"><div><br></div><div>Thomas Taranowski | 425-442-9209 | skype: thomas.taranowski | <a href="http://baringforge.com" target="_blank">baringforge.com</a><br><br></div>
</div></div>