dbus/cmake/modules/ProjectSourceGroup.cmake
Ralf Habacker 36ebfd411b * cmake: new directory, contains cmake build support.
See http://www.cmake.org for more informations.
Currently only unix will be buildable because some
win32 required files are still missing.
2007-03-03 14:32:17 +00:00

18 lines
707 B
CMake

# 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)