[Insight-developers] CMakeLists.txt style

Hans Johnson hans-johnson at uiowa.edu
Wed Jul 28 22:52:25 EDT 2010


Hello All,

I¹d like public comments on my proposal to change the capitalization of key
words in the CMakeLists.txt files for ITKv4.

http://www.itk.org/Wiki/ITKv4_StyleChangeProposal
* CMakeLists.txt Style

Recent versions of cmake documentation have gone to using all lower case key
words.  In order to make ITKv4 consistent with the printed documentation,
ITKv4 should also follow this convention.

This vim macro accomplishes the task easily, and has been tested on the
BRAINS source code base.

<pre>
:%s!ADD_CUSTOM_COMMAND\( *\)(!add_custom_command\2(!g
:%s!ADD_CUSTOM_TARGET\( *\)(!add_custom_target\2(!g
:%s!ADD_DEFINITIONS\( *\)(!add_definitions\2(!g
<<<--CLIP--->>
:%s!VARIABLE_REQUIRES\( *\)(!variable_requires\2(!g
:%s!WRITE_FILE\( *\)(!write_file\2(!g
</pre> 
-- 
Hans J. Johnson, Ph.D.
Assistant Professor
200 Hawkins Drive
T205 BT, The University of Iowa
Iowa City, IA 52242

hans-johnson at uiowa.edu
PHONE: 319 353 8587

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100728/d4410350/attachment.htm>


More information about the Insight-developers mailing list