CMake: Use source_groups to represent the source tree

* It let ide's (like vs) display the source tree.
* Disabled by default.
* Soft requirement is cmake >= 2.8.12 .
* Offers 2 modes: flat & hierarchical.
* For detailed description see #14471
* Thanks @click for help and advises.
* Closes #14471
This commit is contained in:
Naios
2015-03-29 16:08:28 +02:00
parent c61fac843b
commit c386711972
10 changed files with 85 additions and 0 deletions

View File

@@ -146,6 +146,8 @@ include_directories(
${VALGRIND_INCLUDE_DIR}
)
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
add_library(scripts STATIC
${scripts_STAT_SRCS}
${scripts_STAT_PCH_SRC}