Hi,<br><br>&nbsp; I am looking for documentation about standard coding style, convention  and best practices on CMake programming, I couldn&#39;t find anything about it in the Wiki or the FAQ.<br>&nbsp; Is there some standard coding style/convention to use for CMakeLists.txt files? Or even some &quot;non-standard&quot; style guide?<br>
&nbsp; I know there is the VTK Coding Standards and the ITK Coding Standards, but they do not tell much about coding CMakeLists.txt files. All I could find about this was a blog post ( <a href="http://people.fruitsalad.org/adridg/bobulate/index.php?/archives/458-Style-checks-for-CMake.html">http://people.fruitsalad.org/adridg/bobulate/index.php?/archives/458-Style-checks-for-CMake.html</a> ).<br>
<br>&nbsp; Just looking in the documentation and in the CMake files from CMake modules itself, from the examples, and from some other major projects (VTK, ITK), there are all kinds of styles:<br><br>MESSAGE(HELLO)<br>MESSAGE( HELLO )<br>
MESSAGE (HELLO)<br>message(HELLO)<br>message( HELLO )<br>message (HELLO)<br><br>&nbsp; (Not even mentioning the indent style). It seems that there is a transition going on from uppercase to lowercase in the recent CMakeLists... I don&#39;t know what style to settle for my new CMakeLists.txt&#39;s, because if I use lowercase, to copy&amp;paste from other projects would be a real pain... but maybe the projects will convert their CMakeLists to lowercase? A tool to automatically convert from uppercase commands to lowercase would help.<br>
&nbsp; And, well, if we enter into case convention of other elements such as variables... then it starts to get into a real mess... :)<br><br>&nbsp; To begin, it would be nice if a CMake &quot;guru&quot; created a Wiki page about CMake style, so that all projects can be consistent with it, and so that some style checking/conversion tools could be made.<br>
<br><br>&nbsp;&nbsp; Regards,<br>Edson<br><br>