Commit 00f5d2f8 authored by Philip Trettner's avatar Philip Trettner

Moved macro for msvc source folding

parent 00b79d73
......@@ -5,26 +5,7 @@
#
CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
################################################################################
# Macro to sort acgl into directories
################################################################################
MACRO (RECURSE_GROUPS dirname)
FILE(GLOB_RECURSE allfiles "${dirname}/*.*")
SET(ALL_FILES ${ALL_FILES} ${allfiles})
STRING(REGEX REPLACE ".*/([^/]*)" "\\1" maindir "${dirname}")
FOREACH(file ${allfiles})
STRING(REGEX REPLACE "${dirname}/(.*)/[^/]*" "\\1" loopdirname "${file}")
STRING(REGEX REPLACE "/" "\\\\" loopdirname "${loopdirname}")
IF(NOT "${file}" MATCHES "${dirname}/(.*)/[^/]*")
source_group("${maindir}" FILES ${file})
ELSE()
source_group("${maindir}\\${loopdirname}" FILES ${file})
ENDIF()
ENDFOREACH()
ENDMACRO (RECURSE_GROUPS)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/CMakeMacros.txt)
################################################################################
# Global Settings
......
......@@ -4,6 +4,8 @@
# e.g.: INCLUDE(${CMAKE_SOURCE_DIR}/extern/acgl/CMakeListsStaticInclude.txt)
#
include(${CMAKE_CURRENT_LIST_DIR}/cmake/CMakeMacros.txt)
SET(ACGL_BASE_DIR "${CMAKE_CURRENT_LIST_DIR}")
# Find all used files of certain file-types
FILE(GLOB_RECURSE SOURCE_FILES_C "${ACGL_BASE_DIR}/src/*.c")
......
cmake @ c4eead9b
Subproject commit a0eb0dda91ce5d621d47de52bcecdd494b00e353
Subproject commit c4eead9bcb430fed3e99ee0df0f2b06559df5db4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment