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

From Slicer Wiki
Jump to: navigation, search
(4.1 -> Nightly)
 
(Moved readthedocs)
Tag: 2017 source edit
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
__TOC__
+
{{documentation/banner
 
+
| text  = [https://slicer.readthedocs.io/en/latest/developer_guide/style_guide.html This page has been moved to read-the-docs.]
= Naming =
+
| background-color = 8FBC8F }}
# 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