diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-06-15 21:32:41 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-06-15 21:32:41 +0300 |
commit | e567468ee103a9f5bcf86e2aa49ba88b5a11ad79 (patch) | |
tree | 86de92ad5af3c783a48a699639bff8e0f212a425 /build_files/cmake | |
parent | 2696c85ba7ceca4008976c4b6ae47bda0535a305 (diff) |
QtCreator/Visual Studio: Group glsl files in Shaders group.
Diffstat (limited to 'build_files/cmake')
-rw-r--r-- | build_files/cmake/macros.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index d7716913cf5..cdbaea183bd 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -177,12 +177,14 @@ function(blender_source_group source_group("Source Files" FILES CMakeLists.txt) foreach(_SRC ${sources}) - get_filename_component(_SRC_EXT ${_SRC} EXT) + get_filename_component(_SRC_EXT ${_SRC} LAST_EXT) if((${_SRC_EXT} MATCHES ".h") OR (${_SRC_EXT} MATCHES ".hpp") OR (${_SRC_EXT} MATCHES ".hh")) set(GROUP_ID "Header Files") + elseif(${_SRC_EXT} MATCHES ".glsl") + set(GROUP_ID "Shaders") else() set(GROUP_ID "Source Files") endif() |