cmake-commands(7)¶
Normal Commands¶
These commands may be used freely in CMake projects.
- add_compile_options
- add_custom_command
- add_custom_target
- add_definitions
- add_dependencies
- add_executable
- add_library
- add_subdirectory
- add_test
- aux_source_directory
- break
- build_command
- cmake_host_system_information
- cmake_minimum_required
- cmake_parse_arguments
- cmake_policy
- configure_file
- continue
- create_test_sourcelist
- define_property
- elseif
- else
- enable_language
- enable_testing
- endforeach
- endfunction
- endif
- endmacro
- endwhile
- execute_process
- export
- file
- find_file
- find_library
- find_package
- find_path
- find_program
- fltk_wrap_ui
- foreach
- function
- get_cmake_property
- get_directory_property
- get_filename_component
- get_property
- get_source_file_property
- get_target_property
- get_test_property
- if
- include_directories
- include_external_msproject
- include_regular_expression
- include
- install
- link_directories
- link_libraries
- list
- load_cache
- macro
- mark_as_advanced
- math
- message
- option
- project
- qt_wrap_cpp
- qt_wrap_ui
- remove_definitions
- return
- separate_arguments
- set_directory_properties
- set_property
- set
- set_source_files_properties
- set_target_properties
- set_tests_properties
- site_name
- source_group
- string
- target_compile_definitions
- target_compile_features
- target_compile_options
- target_include_directories
- target_link_libraries
- target_sources
- try_compile
- try_run
- unset
- variable_watch
- while
Deprecated Commands¶
These commands are available only for compatibility with older versions of CMake. Do not use them in new code.
CTest Commands¶
These commands are available only in ctest scripts.