This command is intended to install programs that are not built by cmake, such as shell scripts. Install_programs( regexp)In the second form any program in the current source directory that matches the regular expression will be installed. Used even when there is only one argument. Use the FILES argument to guarantee that the file list version of the command will be Install_programs( FILES file1 )Create rules to install the listed programs into the given directory. The regexp form can be expressed more clearly using the GLOB form of the FILE command. Use the install(PROGRAMS ) command instead. The directory is relative to the installation prefix, which is stored in the variable CMAKE_INSTALL_PREFIX. )Any files listed after the FILES keyword will be installed explicitly from the names given. Install_files( regexp)Any files in the current source directory that match the regular expression will be installed. Providing lists of source files such as foo.cxx when you want the corresponding foo.h to be installed. If a file specified already has an extension, that extension will be removed first. Only files existing in the current source tree or itsĬorresponding location in the binary tree may be listed. )Create rules to install the listed files with the given extension into the given directory. The regexp form can be expressed more clearly using the GLOB form of the file command. The FILES form is directly replaced by theįILES form of the install command. It is provided for compatibility with older CMake code. This command has been superceded by the install command. The APPEND option is specified, the SET commands will be appended to the given file instead of replacing it. This should be the last command in the top level CMakeLists.txt file of the project. Will set all the variables needed for library dependency information. The file will contain a number of SET commands that The old-style library dependencies file does not take into account per-configuration names of libraries or the LINK_INTERFACE_LIBRARIES target property.Įxport_library_dependencies( )Create a file named that can be included into a CMake listfile with the INCLUDE command. Install(EXPORT) command to help export targets from an installation tree and the export() command to export targets from a build tree. Projects requiring CMake 2.6 or later should not use the command. This command generates an old-style library dependencies file. OUTPUT_VARIABLE is specified, then no output will go to the stdout/stderr of the console running cmake.Įxport_library_dependencies Deprecated. To capture the return value of the execution, provide a RETURN_VALUE. An optionalĪrgument OUTPUT_VARIABLE specifies a variable in which to store the output. This is because cmake will then be able to escape spaces in the executable path. Optional ARGS argument to specify arguments to the program. The executable can include arguments if it is double quoted, but it is better to use the )The executable is run in the optionally specified directory. Run an executable program during the processing of the CMakeList.txt file.Įxec_program(Executable Use the execute_process() command instead. These values are now available through the CMAKE_SYSTEM andĮxec_program Deprecated. Use $ instead.īuild_name(variable)Sets the specified variable to a string representing the platform and compiler settings. Instead use the newer, faster and shinier new commands. +++ -1,5 +1,5 STREQUAL $/grabRef.Cmakecompat - Reference of CMake compatibility commands.Ĭompatibility Commands CMake Compatibility Listfile Commands - Obsolete commands supported byĬMake for compatibility.This is the documentation for now obsolete listfile commands from previous CMake versions, which are still supported for compatibility reasons. If so, SDL_revision.h will be updated.Ĭmake/GetGitRevisionDescription.cmake | 284 +++++++++++++++++++++++Ĭmake/ | 43 ++++Ħ files changed, 343 insertions(+), 32 deletions(-)Ĭreate mode 100644 cmake/GetGitRevisionDescription.cmakeĬreate mode 100644 cmake/ĭiff -git a/CMakeLists.txt b/CMakeLists.txt This allows the build system (ninja/make/VS) to detect whether the currentĬheckout git commit has changed. Subject: cmake: generate git hash using GetRevisionDescription CMake
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |