Installing

See general documentation here Using qi_install functions

qi_install

qi_install([SUBFOLDER <subfolder>]
    [IF <if>]
    [KEEP_RELATIVE_PATHS]
)
Arguments:
  • SUBFOLDER – An optional subfolder in which to put the files.
  • IF – Condition that should be verified for the install rules to be active for example (IF WITH_ZEROMQ)
  • KEEP_RELATIVE_PATHS – If true, relative paths will be preserved during installation.

Generic install function.

qi_install_header

qi_install_header([<remaining args> ...]
    [SUBFOLDER <subfolder>]
    [IF <if>]
    [KEEP_RELATIVE_PATHS]
)
Arguments:
  • args (remaining) – A list of files : directories and globs on files are accepted.
  • SUBFOLDER – An optional subfolder in which to put the files.
  • IF – Condition that should be verified for the install rules to be active for example (IF WITH_ZEROMQ)
  • KEEP_RELATIVE_PATHS – If true, relative paths will be preserved during installation. (False by default because this is NOT the standard CMake behavior)

Install application headers. The destination will be <prefix>/include/

qi_install_data

qi_install_data([<remaining args> ...]
    [SUBFOLDER <subfolder>]
    [IF <if>]
    [KEEP_RELATIVE_PATHS]
)
Arguments:
  • args (remaining) – A list of files : directories and globs on files are accepted.
  • SUBFOLDER – An optional subfolder in which to put the files.
  • IF – Condition that should be verified for the install rules to be active for example (IF WITH_ZEROMQ)
  • KEEP_RELATIVE_PATHS – If true, relative paths will be preserved during installation. (False by default because this is NOT the standard CMake behavior)

Install application data. The destination will be: <prefix>/share/

qi_install_doc

qi_install_doc([<remaining args> ...]
    [SUBFOLDER <subfolder>]
    [IF <if>]
    [KEEP_RELATIVE_PATHS]
)
Arguments:
  • args (remaining) – A list of files : directories and globs on files are accepted.
  • SUBFOLDER – An optional subfolder in which to put the files.
  • IF – Condition that should be verified for the install rules to be active for example (IF WITH_ZEROMQ)
  • KEEP_RELATIVE_PATHS – If true, relative paths will be preserved during installation. (False by default because this is NOT the standard CMake behavior)

Install application doc. The destination will be: <prefix>/share/doc/

qi_install_conf

qi_install_conf([<remaining args> ...]
    [SUBFOLDER <subfolder>]
    [IF <if>]
    [KEEP_RELATIVE_PATHS]
)
Arguments:
  • args (remaining) – A list of files : directories and globs on files are accepted.
  • SUBFOLDER – An optional subfolder in which to put the files.
  • IF – Condition that should be verified for the install rules to be active for example (IF WITH_ZEROMQ)
  • KEEP_RELATIVE_PATHS – If true, relative paths will be preserved during installation. (False by default because this is NOT the standard CMake behavior)

Install application configuration files.

qi_install_cmake

qi_install_cmake([<remaining args> ...]
    [SUBFOLDER <subfolder>]
    [IF <if>]
    [KEEP_RELATIVE_PATHS]
)
Arguments:
  • args (remaining) – A list of files : directories and globs on files are accepted.
  • SUBFOLDER – An optional subfolder in which to put the files.
  • IF – Condition that should be verified for the install rules to be active for example (IF WITH_ZEROMQ)
  • KEEP_RELATIVE_PATHS – If true, relative paths will be preserved during installation. (False by default because this is NOT the standard CMake behavior)

Install CMake module files. The destination will be: <prefix>/share/cmake/

qi_install_target

qi_install_target([<remaining args> ...]
    [SUBFOLDER <subfolder>]
    [IF <if>]
)
Arguments:
  • args (remaining) – A list of targets to install
  • SUBFOLDER – An optional subfolder in which to put the files.
  • IF – Condition that should be verified for the install rules to be active for example (IF WITH_ZEROMQ)

install a target, that could be a program or a library.

qi_install_program

qi_install_program([<remaining args> ...]
    [SUBFOLDER <subfolder>]
    [IF <if>]
)
Arguments:
  • args (remaining) – A list of programs to install
  • SUBFOLDER – An optional subfolder in which to put the files.
  • IF – Condition that should be verified for the install rules to be active for example (IF WITH_ZEROMQ)

install program (mostly script or user provided program). Do not use this function to install a library or a program built by your project, prefer using qi_install_target.

qi_install_library

qi_install_library([<remaining args> ...]
    [SUBFOLDER <subfolder>]
    [IF <if>]
)
Arguments:
  • args (remaining) – A list of libraries to install
  • SUBFOLDER – An optional subfolder in which to put the files.
  • IF – Condition that should be verified for the install rules to be active for example (IF WITH_ZEROMQ)

install external library. Do not use this function to install a library or a program built by your project, prefer using qi_install_target.