From d8ccc62d517d0bac72b6ff9e95a290f194de31c8 Mon Sep 17 00:00:00 2001 From: Cambloid <12214553+Cambloid@users.noreply.github.com> Date: Tue, 11 Jan 2022 05:24:51 +0100 Subject: [PATCH] preserve folder structure in visual studio (#1821) --- app/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 85ec313a6..64d77da16 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -99,6 +99,9 @@ if (WIN32) # Set Windows application icon target_sources(olive-editor PRIVATE packaging/windows/resources.rc) + # Preserve folder structure in visual studio + source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${OLIVE_SOURCES}) + elseif(APPLE) # Set Mac application icon set(OLIVE_ICON packaging/macos/olive.icns)