

#Cmake set variable superset list of files code#
Higher accept such code but produce a warning. Or a Quoted Argument immediately following a Quoted Argument and Separated_arguments ::= separation+ argument? |ĬMake versions prior to 3.0 require command name identifiersĬMake versions prior to 2.8.12 silently accept an Unquoted Argument Separated by whitespace: command_invocation ::= space* identifier space* '(' arguments ')'Īrguments ::= argument? separated_arguments* Command Invocations ¶Ī command invocation is a name followed by paren-enclosed arguments Note that any source file line not inside Command Arguments orĪ Bracket Comment can end in a Line Comment. ( bracket_comment| space)* line_ending line_ending ::= line_comment? newline space ::= Spaces and Comments: file ::= file_element*įile_element ::= command_invocation line_ending | Source Files ¶Ī CMake Language source file consists of zero or moreĬommand Invocations separated by newlines and optionally In addition, CMake 3.2 and above support source filesĮncoded in UTF-8 on Windows (using UTF-16 to call system APIs).įurthermore, CMake 3.0 and above allow a leading UTF-8īyte-Order Mark in source files. Note that the implementation is 8-bit clean so source files mayīe encoded as UTF-8 on platforms with system APIs supporting thisĮncoding. Newlines may beĮncoded as either \n or \r\n but will be converted to \n Maximum portability across all supported platforms. Specify their location(s) in the CMAKE_MODULE_PATHĪ CMake Language source file may be written in 7-bit ASCII text for Project source trees may also provide their own modules and Of modules included with the CMake distribution.
#Cmake set variable superset list of files manual#
See the cmake-modules(7) manual page for documentation Source file in the scope of the including context. Modules ¶ĬMake Language code in either Directories or Scripts may It does not allow CMake commands thatĭefine build targets or actions. The commands in the given CMake Language source file and does not In script mode by using the cmake(1) command-line tool Tree to act as the default working and output directory. Is processed CMake generates a corresponding directory in the build For each source directory whose CMakeLists.txt file Each subdirectory added by the command must alsoĬontain a CMakeLists.txt file as the entry point to thatĭirectory. Or use the add_subdirectory() command to add subdirectories This file may contain the entire build specification When CMake processes a project source tree, the entry point isĪ source file called CMakeLists.txt in the top-level sourceĭirectory.

cmake file name extension.ĬMake Language source files in a project are organized into: CMake input files are written in the "CMake Language" in source files
