From ed4722b6e6314e9dce920fe90138dc714c734251 Mon Sep 17 00:00:00 2001 From: Naios Date: Sun, 29 Mar 2015 16:13:22 +0200 Subject: 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 (cherry picked from commit c386711972260aa7b877cdc8cb49d24576ce1902) Conflicts: src/server/authserver/CMakeLists.txt --- cmake/options.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmake/options.cmake') diff --git a/cmake/options.cmake b/cmake/options.cmake index 9b0e663d0a9..0bc7c84e66f 100644 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -15,4 +15,6 @@ option(USE_SCRIPTPCH "Use precompiled headers when compiling scripts" option(USE_COREPCH "Use precompiled headers when compiling servers" 1) option(WITH_WARNINGS "Show all warnings during compile" 0) option(WITH_COREDEBUG "Include additional debug-code in core" 0) +set(WITH_SOURCE_TREE "no" CACHE STRING "Build the source tree for IDE's.") +set_property(CACHE WITH_SOURCE_TREE PROPERTY STRINGS no flat hierarchical) option(WITHOUT_GIT "Disable the GIT testing routines" 0) -- cgit v1.2.3