source_group CMake command isn't working -


i don't understand source_group command in cmakelists.txt. when works:

file(glob input_head    keyboard.h mouse.h) source_group("header files\\input" files ${input_head}) 

but isn't working:

file(glob shaders ../shaders/*.txt) source_group("source files\\shaders" files ${shaders}) 

any suggestions on how solve this? (i have read documentation command, don't understand whythis doesn't work)

you need use files in actual target. example must used in add_library or add_executable statement, in folder within project. also, use ''/'' rather \\ separator. may want use set_property(global property use_folders on) have predefined cmake projects go own solution folder.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -