1
0

install_programs.rst 1.2 KB

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