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: add_executable.rst
add_executable -------------- Add an executable to the project using the specified source files. .. code-block:: cmake add_executable(<name> [WIN32] [MACOSX_BUNDLE] [EXCLUDE_FROM_ALL] [source1] [source2 ...]) Adds an executable target called ``<name>`` to be built from the source files listed in the command invocation. (The source files can be omitted here if they are added later using :command:`target_sources`.) The ``<name>`` corresponds to the logical target name and must be globally unique within a project. The actual file name of the executable built is constructed based on conventions of the native platform (such as ``<name>.exe`` or just ``<name>``). By default the executable file will be created in the build tree directory corresponding to the source tree directory in which the command was invoked. See documentation of the :prop_tgt:`RUNTIME_OUTPUT_DIRECTORY` target property to change this location. See documentation of the :prop_tgt:`OUTPUT_NAME` target property to change the ``<name>`` part of the final file name. If ``WIN32`` is given the property :prop_tgt:`WIN32_EXECUTABLE` will be set on the target created. See documentation of that target property for details. If ``MACOSX_BUNDLE`` is given the corresponding property will be set on the created target. See documentation of the :prop_tgt:`MACOSX_BUNDLE` target property for details. If ``EXCLUDE_FROM_ALL`` is given the corresponding property will be set on the created target. See documentation of the :prop_tgt:`EXCLUDE_FROM_ALL` target property for details. Source arguments to ``add_executable`` may use "generator expressions" with the syntax ``$<...>``. See the :manual:`cmake3-generator-expressions(7)` manual for available expressions. See the :manual:`cmake3-buildsystem(7)` manual for more on defining buildsystem properties. See also :prop_sf:`HEADER_FILE_ONLY` on what to do if some sources are pre-processed, and you want to have the original sources reachable from within IDE. -------------------------------------------------------------------------- .. code-block:: cmake add_executable(<name> IMPORTED [GLOBAL]) An :ref:`IMPORTED executable target <Imported Targets>` references an executable file located outside the project. No rules are generated to build it, and the :prop_tgt:`IMPORTED` target property is ``True``. The target name has scope in the directory in which it is created and below, but the ``GLOBAL`` option extends visibility. It may be referenced like any target built within the project. ``IMPORTED`` executables are useful for convenient reference from commands like :command:`add_custom_command`. Details about the imported executable are specified by setting properties whose names begin in ``IMPORTED_``. The most important such property is :prop_tgt:`IMPORTED_LOCATION` (and its per-configuration version :prop_tgt:`IMPORTED_LOCATION_<CONFIG>`) which specifies the location of the main executable file on disk. See documentation of the ``IMPORTED_*`` properties for more information. -------------------------------------------------------------------------- .. code-block:: cmake add_executable(<name> ALIAS <target>) Creates an :ref:`Alias Target <Alias Targets>`, such that ``<name>`` can be used to refer to ``<target>`` in subsequent commands. The ``<name>`` does not appear in the generated buildsystem as a make target. The ``<target>`` may not be a non-``GLOBAL`` :ref:`Imported Target <Imported Targets>` or an ``ALIAS``. ``ALIAS`` targets can be used as targets to read properties from, executables for custom commands and custom targets. They can also be tested for existence with the regular :command:`if(TARGET)` subcommand. The ``<name>`` may not be used to modify properties of ``<target>``, that is, it may not be used as the operand of :command:`set_property`, :command:`set_target_properties`, :command:`target_link_libraries` etc. An ``ALIAS`` target may not be installed or exported.
Save