1
0

include_external_msproject.rst 1.1 KB

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