VS_SOLUTION_ITEMS.rst 961 B

12345678910111213141516171819
  1. VS_SOLUTION_ITEMS
  2. -----------------
  3. .. versionadded:: 4.0
  4. Specify solution level items included in the generated Visual Studio solution.
  5. The :ref:`Visual Studio Generators` create a ``.sln`` file for each directory
  6. whose ``CMakeLists.txt`` file calls the :command:`project` command. Append paths
  7. to this property in the same directory as the top-level :command:`project`
  8. command call (e.g. in the top-level ``CMakeLists.txt`` file) to specify files
  9. included in the corresponding solution file.
  10. If a file specified in ``VS_SOLUTION_ITEMS`` matches a :command:`source_group`
  11. command call, the affected solution level items are placed in a hierarchy of
  12. solution level folders according to the name specified in that command.
  13. Otherwise the items are placed in a default solution level directory named
  14. ``Solution Items``. This name matches the default directory name used by Visual
  15. Studio when attempting to add solution level items at the root of the solution.