aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/ryml/ext/c4core/cmake/CreateSourceGroup.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/ryml/ext/c4core/cmake/CreateSourceGroup.cmake')
-rw-r--r--thirdparty/ryml/ext/c4core/cmake/CreateSourceGroup.cmake31
1 files changed, 0 insertions, 31 deletions
diff --git a/thirdparty/ryml/ext/c4core/cmake/CreateSourceGroup.cmake b/thirdparty/ryml/ext/c4core/cmake/CreateSourceGroup.cmake
deleted file mode 100644
index e8e144184..000000000
--- a/thirdparty/ryml/ext/c4core/cmake/CreateSourceGroup.cmake
+++ /dev/null
@@ -1,31 +0,0 @@
-# create hierarchical source groups based on a dir tree
-#
-# EXAMPLE USAGE:
-#
-# create_source_group("src" "${SRC_ROOT}" "${SRC_LIST}")
-#
-# Visual Studio usually has the equivalent to this:
-#
-# create_source_group("Header Files" ${PROJ_SRC_DIR} "${PROJ_HEADERS}")
-# create_source_group("Source Files" ${PROJ_SRC_DIR} "${PROJ_SOURCES}")
-#
-# TODO: <jpmag> this was taken from a stack overflow answer. Need to find it
-# and add a link here.
-
-macro(create_source_group GroupPrefix RootDir ProjectSources)
- set(DirSources ${ProjectSources})
- foreach(Source ${DirSources})
- #message(STATUS "s=${Source}")
- string(REGEX REPLACE "([\\^\\$*+?|])" "\\\\\\1" RootDirRegex "${RootDir}")
- string(REGEX REPLACE "${RootDirRegex}" "" RelativePath "${Source}")
- #message(STATUS " ${RelativePath}")
- string(REGEX REPLACE "[\\\\/][^\\\\/]*$" "" RelativePath "${RelativePath}")
- #message(STATUS " ${RelativePath}")
- string(REGEX REPLACE "^[\\\\/]" "" RelativePath "${RelativePath}")
- #message(STATUS " ${RelativePath}")
- string(REGEX REPLACE "/" "\\\\\\\\" RelativePath "${RelativePath}")
- #message(STATUS " ${RelativePath}")
- source_group("${GroupPrefix}\\${RelativePath}" FILES ${Source})
- #message(STATUS " ${Source}")
- endforeach(Source)
-endmacro(create_source_group)