From 853f713db1b51f9c030143798c434878b52bf536 Mon Sep 17 00:00:00 2001 From: Johannes Schneider Date: Mon, 31 May 2021 23:03:48 +0200 Subject: [PATCH] Remove source_group instructions --- src/CMakeLists.txt | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 26be85d..c3a1704 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -10,21 +10,6 @@ set(VMA_LIBRARY_SOURCE_FILES VmaUsage.cpp ) -# Use folder structure as filters in project map -foreach(FILE ${VMA_LIBRARY_SOURCE_FILES}) - get_filename_component(PARENT_DIR "${FILE}" PATH) - - string(REPLACE "/" "\\" GROUP "${PARENT_DIR}") - - if("${FILE}" MATCHES ".*\\.cpp") - set(GROUP "Source Files\\${GROUP}") - elseif("${FILE}" MATCHES ".*\\.hpp") - set(GROUP "Header Files\\${GROUP}") - endif() - - source_group("${GROUP}" FILES "${FILE}") -endforeach() - add_library(VulkanMemoryAllocator ${VMA_LIBRARY_SOURCE_FILES}) set_target_properties( @@ -57,21 +42,6 @@ set(VMA_EXAMPLE_SOURCE_FILES VulkanSample.cpp ) -# Use folder structure as filters in project map -foreach(FILE ${VMA_EXAMPLE_SOURCE_FILES}) - get_filename_component(PARENT_DIR "${FILE}" PATH) - - string(REPLACE "/" "\\" GROUP "${PARENT_DIR}") - - if("${FILE}" MATCHES ".*\\.cpp") - set(GROUP "Source Files\\${GROUP}") - elseif("${FILE}" MATCHES ".*\\.hpp") - set(GROUP "Header Files\\${GROUP}") - endif() - - source_group("${GROUP}" FILES "${FILE}") -endforeach() - if (VMA_BUILD_EXAMPLE_APP) if(WIN32) add_executable(VmaExample ${VMA_EXAMPLE_SOURCE_FILES})