Difference between revisions of "Documentation/Nightly/Developers/Style Guide/CMake"

From Slicer Wiki
Jump to: navigation, search
(Prepend documentation/versioncheck template. See http://na-mic.org/Mantis/view.php?id=2887)
(Moved readthedocs)
Tag: 2017 source edit
 
Line 1: Line 1:
<noinclude>{{documentation/versioncheck}}</noinclude>
+
{{documentation/banner
__TOC__
+
| text  = [https://slicer.readthedocs.io/en/latest/developer_guide/style_guide.html This page has been moved to read-the-docs.]
 
+
| background-color = 8FBC8F }}
= Naming =
 
# Macros/functions should be lower case and words separated with underscores
 
#: <code>include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Logic)</code> not <code>INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/Logic)</code>
 
#: <code>find_package(VTK REQUIRED)</code> not <code>FIND_PACKAGE(VTK REQUIRED)</code> nor <code>Find_Package(VTK REQUIRED)</code>
 
# Global variables are uppercase and words separated with underscores
 
#: <code>CMAKE_CURRENT_SOURCE_DIR</code> not <code>cmake_current_source_dir</code>
 
# Local variables are lowercase and words separated with underscores
 
#: <code>foreach(file ${FILES_TO_CONFIGURE})...</code> not <code>foreach(FILE ${FILES_TO_CONFIGURE})...</code>
 

Latest revision as of 20:35, 15 March 2022

Home < Documentation < Nightly < Developers < Style Guide < CMake