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
Post a Comment