mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 15:05:56 +00:00
1fbce8c2b6
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14887 a592a061-630c-0410-9148-cb99ea01b6c8
19 lines
707 B
CMake
Executable File
19 lines
707 B
CMake
Executable File
# folders in the msvc projects
|
|
# mode==flat : headers and ourses in no folders
|
|
# mode==split : standard behavior of cmake, split headers 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)
|
|
source_group("cmake" FILES CMakeLists.txt)
|
|
else(${mode} MATCHES "flat")
|
|
if(NOT ${mode} MATCHES "split")
|
|
source_group("${mode}" FILES ${${sources}} ${${headers}})
|
|
endif(NOT ${mode} MATCHES "split")
|
|
endif(${mode} MATCHES "flat")
|
|
endmacro(project_source_group mode sources headers)
|
|
|