lyx_mirror/development/cmake/modules/ProjectSourceGroup.cmake
Peter Kümmel 1fbce8c2b6 more flexible msvc project folder generation, flat is default
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14887 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-03 23:50:16 +00:00

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)