mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
1fbce8c2b6
commit
6ceff16584
@ -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)
|
Loading…
Reference in New Issue
Block a user