Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMake: Avoid Header Files and Source Files Visual Studio filters and put cpp and h files on the solution root

Tags:

cmake

Anyone knows how to put the source and header files on the solution root without vs filters at all? I have all my source subfolders nicely sorted into vs filters, however the files into the source root directory are going to "Header Files" and "Source Files".

Thanks.

like image 631
pisiiki Avatar asked Oct 07 '13 23:10

pisiiki


1 Answers

You can give an empty string to source_group to achieve this:

source_group("" FILES ${MY_TOP_LEVEL_SOURCES} ${MY_TOP_LEVEL_HEADERS})
like image 151
ComicSansMS Avatar answered Nov 04 '22 09:11

ComicSansMS