1install_programs 2---------------- 3 4.. deprecated:: 3.0 5 6 Use the :command:`install(PROGRAMS)` command instead. 7 8This command has been superseded by the :command:`install` command. It is 9provided for compatibility with older CMake code. The ``FILES`` form is 10directly replaced by the ``PROGRAMS`` form of the :command:`install` 11command. The regexp form can be expressed more clearly using the ``GLOB`` 12form of the :command:`file` command. 13 14:: 15 16 install_programs(<dir> file1 file2 [file3 ...]) 17 install_programs(<dir> FILES file1 [file2 ...]) 18 19Create rules to install the listed programs into the given directory. 20Use the ``FILES`` argument to guarantee that the file list version of the 21command will be used even when there is only one argument. 22 23:: 24 25 install_programs(<dir> regexp) 26 27In the second form any program in the current source directory that 28matches the regular expression will be installed. 29 30This command is intended to install programs that are not built by 31cmake, such as shell scripts. See the ``TARGETS`` form of the 32:command:`install` command to create installation rules for targets built 33by cmake. 34 35The directory ``<dir>`` is relative to the installation prefix, which is 36stored in the variable :variable:`CMAKE_INSTALL_PREFIX`. 37