Commit ba3ec20d authored by Martin Schultz's avatar Martin Schultz

added cmake flag MSVC_GROUPING defaulting to true to make the grouping

optional
parent 38492552
set (MSVC_GROUPING ON CACHE BOOL "Group Files by folder structure on MSVC.")
MACRO (RECURSE_GROUPS dirname)
if(${MSVC_GROUPING})
SET(ALL_FILES)
FILE(GLOB_RECURSE allfiles "${dirname}/*.*")
SET(ALL_FILES ${ALL_FILES} ${allfiles})
......@@ -14,4 +16,5 @@ MACRO (RECURSE_GROUPS dirname)
source_group("${maindir}\\${loopdirname}" FILES ${file})
ENDIF()
ENDFOREACH()
endif(${MSVC_GROUPING})
ENDMACRO (RECURSE_GROUPS)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment