CMake how to group generated precompiled headers in Visual Studio

Viewed 114

When I use target_precompile_headers() in visual studio I will get the following structure:

+-- Precompile Header File
|  |
|  +-- cmake_pch.hxx
|  +-- cmake_pch.hxx
|  +-- cmake_pch.hxx
|  +-- cmake_pch.hxx
+-- Source Files
|  | 
|  +-- cmake_pch.cxx

Calling source_group() after this method doesn't work. How do I group these files together?

0 Answers
Related