OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
cmake-3.10
/
Help
/
command
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 06:00:25 AM
rwxr-xr-x
📄
FIND_XXX.txt
4.13 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
FIND_XXX_ORDER.txt
446 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
FIND_XXX_ROOT.txt
1.41 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
add_compile_options.rst
958 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
add_custom_command.rst
10.25 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
add_custom_target.rst
5.04 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
add_definitions.rst
1.1 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
add_dependencies.rst
910 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
add_executable.rst
3.74 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
add_library.rst
7.06 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
add_subdirectory.rst
1.75 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
add_test.rst
2.35 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
aux_source_directory.rst
1.04 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
break.rst
171 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
build_command.rst
1.59 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
build_name.rst
393 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
cmake_host_system_information.rst
2.43 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
cmake_minimum_required.rst
1.95 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
cmake_parse_arguments.rst
4.06 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
cmake_policy.rst
3.83 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
configure_file.rst
3.63 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
continue.rst
304 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
create_test_sourcelist.rst
1.5 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
ctest_build.rst
2.99 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
ctest_configure.rst
1.6 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
ctest_coverage.rst
1.55 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
ctest_empty_binary_directory.rst
304 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
ctest_memcheck.rst
1.24 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
ctest_read_custom_files.rst
314 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
ctest_run_script.rst
539 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
ctest_sleep.rst
227 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
ctest_start.rst
1.05 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
ctest_submit.rst
2.51 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
ctest_test.rst
4.21 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
ctest_update.rst
976 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
ctest_upload.rst
609 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
define_property.rst
1.78 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
else.rst
107 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
elseif.rst
115 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
enable_language.rst
775 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
enable_testing.rst
332 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
endforeach.rst
134 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
endfunction.rst
139 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
endif.rst
110 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
endmacro.rst
124 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
endwhile.rst
124 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
exec_program.rst
929 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
execute_process.rst
3.99 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
export.rst
3.23 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
export_library_dependencies.rst
1.09 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
file.rst
13.89 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
find_file.rst
1.29 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
find_library.rst
3.6 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
find_package.rst
15.79 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
find_path.rst
1.57 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
find_program.rst
1.17 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
fltk_wrap_ui.rst
361 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
foreach.rst
1.39 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
function.rst
1.46 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
get_cmake_property.rst
722 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
get_directory_property.rst
733 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
get_filename_component.rst
2.12 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
get_property.rst
1.82 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
get_source_file_property.rst
548 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
get_target_property.rst
632 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
get_test_property.rst
416 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
if.rst
9.4 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
include.rst
1.03 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
include_directories.rst
1.51 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
include_external_msproject.rst
1.04 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
include_guard.rst
1.77 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
include_regular_expression.rst
551 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
install.rst
16.98 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
install_files.rst
1.33 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
install_programs.rst
1.21 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
install_targets.rst
634 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
link_directories.rst
694 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
link_libraries.rst
650 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
list.rst
2.75 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
load_cache.rst
964 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
load_command.rst
630 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
macro.rst
2.73 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
make_directory.rst
276 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
mark_as_advanced.rst
654 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
math.rst
401 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
message.rst
1.21 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
option.rst
397 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
output_required_files.rst
615 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
project.rst
2.76 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
qt_wrap_cpp.rst
272 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
qt_wrap_ui.rst
412 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
remove.rst
276 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
remove_definitions.rst
275 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
return.rst
654 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
separate_arguments.rst
1.31 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
set.rst
3.24 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
set_directory_properties.rst
291 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
set_property.rst
2.32 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
set_source_files_properties.rst
537 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
set_target_properties.rst
608 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
set_tests_properties.rst
456 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
site_name.rst
100 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
source_group.rst
1.73 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
string.rst
9.01 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
subdir_depends.rst
269 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
subdirs.rst
1.02 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
target_compile_definitions.rst
1.21 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
target_compile_features.rst
1.37 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
target_compile_options.rst
1.69 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
target_include_directories.rst
2.66 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
target_link_libraries.rst
9.46 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
target_sources.rst
1.1 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
try_compile.rst
5.74 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
try_run.rst
3.79 KB
01/18/2018 02:48:42 PM
rw-r--r--
📄
unset.rst
621 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
use_mangled_mesa.rst
434 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
utility_source.rst
940 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
variable_requires.rst
743 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
variable_watch.rst
404 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
while.rst
467 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
write_file.rst
675 bytes
01/18/2018 02:48:42 PM
rw-r--r--
Editing: string.rst
Close
string ------ .. only:: html .. contents:: String operations. Search and Replace ^^^^^^^^^^^^^^^^^^ FIND """" :: string(FIND <string> <substring> <output variable> [REVERSE]) Return the position where the given substring was found in the supplied string. If the ``REVERSE`` flag was used, the command will search for the position of the last occurrence of the specified substring. If the substring is not found, a position of -1 is returned. REPLACE """"""" :: string(REPLACE <match_string> <replace_string> <output variable> <input> [<input>...]) Replace all occurrences of ``match_string`` in the input with ``replace_string`` and store the result in the output. Regular Expressions ^^^^^^^^^^^^^^^^^^^ REGEX MATCH """"""""""" :: string(REGEX MATCH <regular_expression> <output variable> <input> [<input>...]) Match the regular expression once and store the match in the output variable. All ``<input>`` arguments are concatenated before matching. REGEX MATCHALL """""""""""""" :: string(REGEX MATCHALL <regular_expression> <output variable> <input> [<input>...]) Match the regular expression as many times as possible and store the matches in the output variable as a list. All ``<input>`` arguments are concatenated before matching. REGEX REPLACE """"""""""""" :: string(REGEX REPLACE <regular_expression> <replace_expression> <output variable> <input> [<input>...]) Match the regular expression as many times as possible and substitute the replacement expression for the match in the output. All ``<input>`` arguments are concatenated before matching. The replace expression may refer to paren-delimited subexpressions of the match using ``\1``, ``\2``, ..., ``\9``. Note that two backslashes (``\\1``) are required in CMake code to get a backslash through argument parsing. .. _`Regex Specification`: Regex Specification """"""""""""""""""" The following characters have special meaning in regular expressions: ``^`` Matches at beginning of input ``$`` Matches at end of input ``.`` Matches any single character ``[ ]`` Matches any character(s) inside the brackets ``[^ ]`` Matches any character(s) not inside the brackets ``-`` Inside brackets, specifies an inclusive range between characters on either side e.g. ``[a-f]`` is ``[abcdef]`` To match a literal ``-`` using brackets, make it the first or the last character e.g. ``[+*/-]`` matches basic mathematical operators. ``*`` Matches preceding pattern zero or more times ``+`` Matches preceding pattern one or more times ``?`` Matches preceding pattern zero or once only ``|`` Matches a pattern on either side of the ``|`` ``()`` Saves a matched subexpression, which can be referenced in the ``REGEX REPLACE`` operation. Additionally it is saved by all regular expression-related commands, including e.g. :command:`if(MATCHES)`, in the variables :variable:`CMAKE_MATCH_<n>` for ``<n>`` 0..9. ``*``, ``+`` and ``?`` have higher precedence than concatenation. ``|`` has lower precedence than concatenation. This means that the regular expression ``^ab+d$`` matches ``abbd`` but not ``ababd``, and the regular expression ``^(ab|cd)$`` matches ``ab`` but not ``abd``. Manipulation ^^^^^^^^^^^^ APPEND """""" :: string(APPEND <string variable> [<input>...]) Append all the input arguments to the string. PREPEND """"""" :: string(PREPEND <string variable> [<input>...]) Prepend all the input arguments to the string. CONCAT """""" :: string(CONCAT <output variable> [<input>...]) Concatenate all the input arguments together and store the result in the named output variable. TOLOWER """"""" :: string(TOLOWER <string1> <output variable>) Convert string to lower characters. TOUPPER """"""" :: string(TOUPPER <string1> <output variable>) Convert string to upper characters. LENGTH """""" :: string(LENGTH <string> <output variable>) Store in an output variable a given string's length. SUBSTRING """"""""" :: string(SUBSTRING <string> <begin> <length> <output variable>) Store in an output variable a substring of a given string. If length is ``-1`` the remainder of the string starting at begin will be returned. If string is shorter than length then end of string is used instead. .. note:: CMake 3.1 and below reported an error if length pointed past the end of string. STRIP """"" :: string(STRIP <string> <output variable>) Store in an output variable a substring of a given string with leading and trailing spaces removed. GENEX_STRIP """"""""""" :: string(GENEX_STRIP <input string> <output variable>) Strip any :manual:`generator expressions <cmake-generator-expressions(7)>` from the ``input string`` and store the result in the ``output variable``. Comparison ^^^^^^^^^^ :: string(COMPARE LESS <string1> <string2> <output variable>) string(COMPARE GREATER <string1> <string2> <output variable>) string(COMPARE EQUAL <string1> <string2> <output variable>) string(COMPARE NOTEQUAL <string1> <string2> <output variable>) string(COMPARE LESS_EQUAL <string1> <string2> <output variable>) string(COMPARE GREATER_EQUAL <string1> <string2> <output variable>) Compare the strings and store true or false in the output variable. .. _`Supported Hash Algorithms`: Hashing ^^^^^^^ :: string(<HASH> <output variable> <input>) Compute a cryptographic hash of the input string. The supported ``<HASH>`` algorithm names are: ``MD5`` Message-Digest Algorithm 5, RFC 1321. ``SHA1`` US Secure Hash Algorithm 1, RFC 3174. ``SHA224`` US Secure Hash Algorithms, RFC 4634. ``SHA256`` US Secure Hash Algorithms, RFC 4634. ``SHA384`` US Secure Hash Algorithms, RFC 4634. ``SHA512`` US Secure Hash Algorithms, RFC 4634. ``SHA3_224`` Keccak SHA-3. ``SHA3_256`` Keccak SHA-3. ``SHA3_384`` Keccak SHA-3. ``SHA3_512`` Keccak SHA-3. Generation ^^^^^^^^^^ ASCII """"" :: string(ASCII <number> [<number> ...] <output variable>) Convert all numbers into corresponding ASCII characters. CONFIGURE """"""""" :: string(CONFIGURE <string1> <output variable> [@ONLY] [ESCAPE_QUOTES]) Transform a string like :command:`configure_file` transforms a file. RANDOM """""" :: string(RANDOM [LENGTH <length>] [ALPHABET <alphabet>] [RANDOM_SEED <seed>] <output variable>) Return a random string of given length consisting of characters from the given alphabet. Default length is 5 characters and default alphabet is all numbers and upper and lower case letters. If an integer ``RANDOM_SEED`` is given, its value will be used to seed the random number generator. TIMESTAMP """"""""" :: string(TIMESTAMP <output variable> [<format string>] [UTC]) Write a string representation of the current date and/or time to the output variable. Should the command be unable to obtain a timestamp the output variable will be set to the empty string "". The optional ``UTC`` flag requests the current date/time representation to be in Coordinated Universal Time (UTC) rather than local time. The optional ``<format string>`` may contain the following format specifiers: :: %% A literal percent sign (%). %d The day of the current month (01-31). %H The hour on a 24-hour clock (00-23). %I The hour on a 12-hour clock (01-12). %j The day of the current year (001-366). %m The month of the current year (01-12). %b Abbreviated month name (e.g. Oct). %B Full month name (e.g. October). %M The minute of the current hour (00-59). %s Seconds since midnight (UTC) 1-Jan-1970 (UNIX time). %S The second of the current minute. 60 represents a leap second. (00-60) %U The week number of the current year (00-53). %w The day of the current week. 0 is Sunday. (0-6) %a Abbreviated weekday name (e.g. Fri). %A Full weekday name (e.g. Friday). %y The last two digits of the current year (00-99) %Y The current year. Unknown format specifiers will be ignored and copied to the output as-is. If no explicit ``<format string>`` is given it will default to: :: %Y-%m-%dT%H:%M:%S for local time. %Y-%m-%dT%H:%M:%SZ for UTC. :: string(MAKE_C_IDENTIFIER <input string> <output variable>) Write a string which can be used as an identifier in C. .. note:: If the ``SOURCE_DATE_EPOCH`` environment variable is set, its value will be used instead of the current time. See https://reproducible-builds.org/specs/source-date-epoch/ for details. UUID """" :: string(UUID <output variable> NAMESPACE <namespace> NAME <name> TYPE <MD5|SHA1> [UPPER]) Create a univerally unique identifier (aka GUID) as per RFC4122 based on the hash of the combined values of ``<namespace>`` (which itself has to be a valid UUID) and ``<name>``. The hash algorithm can be either ``MD5`` (Version 3 UUID) or ``SHA1`` (Version 5 UUID). A UUID has the format ``xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`` where each `x` represents a lower case hexadecimal character. Where required an uppercase representation can be requested with the optional ``UPPER`` flag.