From 09126c20637cae05ec6f78148acadb7a9d08908e Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 19 Sep 2009 09:36:10 +0000 Subject: [PATCH] trying to create source groups --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40ee33bf56..2dc89c3abc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,6 +119,7 @@ macro(append_gmsh_src DIRNAME FILES) list(APPEND LIST ${DIRNAME}/${FILE}) endforeach(FILE) set(GMSH_SRC ${GMSH_SRC};${LIST} PARENT_SCOPE) + set(GMSH_DIRS ${GMSH_DIRS};${DIRNAME} PARENT_SCOPE) endmacro(append_gmsh_src) macro(find_all_libraries VARNAME LISTNAME SUFFIX) @@ -630,6 +631,11 @@ include_directories(Common Fltk Geo Graphics Mesh Solver Numeric Parser Plugin contrib/Tetgen contrib/Fl_Tree contrib/gmm contrib/kbipack ${EXTERNAL_INCLUDES} ${CMAKE_BINARY_DIR}/Common) +# create group sources for easier navigation in IDEs +foreach(DIR ${GMSH_DIRS}) + source_group(${DIR} REGULAR_EXPRESSION ${DIR}/.*) +endforeach(DIR) + # static library target: we don't build it by default (we could then # create the gmsh target by linking with it) because doing so slows # down the compile/link development a lot: running ranlib+ar on a -- GitLab