include_external_msproject.rst 1.1 KB

123456789101112131415161718192021222324252627
  1. include_external_msproject
  2. --------------------------
  3. Include an external Microsoft project file in a workspace.
  4. .. code-block:: cmake
  5. include_external_msproject(projectname location
  6. [TYPE projectTypeGUID]
  7. [GUID projectGUID]
  8. [PLATFORM platformName]
  9. dep1 dep2 ...)
  10. Includes an external Microsoft project in the generated workspace
  11. file. Currently does nothing on UNIX. This will create a target
  12. named ``[projectname]``. This can be used in the :command:`add_dependencies`
  13. command to make things depend on the external project.
  14. ``TYPE``, ``GUID`` and ``PLATFORM`` are optional parameters that allow one to
  15. specify the type of project, id (``GUID``) of the project and the name of
  16. the target platform. This is useful for projects requiring values
  17. other than the default (e.g. WIX projects).
  18. .. versionadded:: 3.9
  19. If the imported project has different configuration names than the
  20. current project, set the :prop_tgt:`MAP_IMPORTED_CONFIG_<CONFIG>`
  21. target property to specify the mapping.