move project_source_group macro into an extra file: ProjectSourceGroup.cmake

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14888 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2006-09-03 23:52:51 +00:00
parent 1fbce8c2b6
commit 6ceff16584

View File

@ -99,22 +99,3 @@ MACRO (LYX_AUTOMOC)
endforeach (_current_FILE)
endmacro (LYX_AUTOMOC)
# folders in the project
# mode==flat : no folders
# mode==split : standart behavior of cmake, split heders and sources
# mode== <other values" : code is in this folder
macro(project_source_group mode sources headers)
#message(STATUS ${mode})
#message(STATUS ${sources} ${headers})
if(${mode} MATCHES "flat")
source_group("Source Files" Files)
source_group("Header Files" Files)
else(${mode} MATCHES "flat")
if(NOT ${mode} MATCHES "split")
source_group("${mode}" FILES ${${sources}} ${${headers}})
source_group("cmake" FILES CMakeLists.txt)
endif(NOT ${mode} MATCHES "split")
endif(${mode} MATCHES "flat")
endmacro(project_source_group mode sources headers)