From 580ecd8dce83b80f2b12edfadecac2196f476a91 Mon Sep 17 00:00:00 2001 From: Huseyn Ismayilov Date: Fri, 22 Nov 2024 05:08:57 +0400 Subject: [PATCH] refactor: Change resources path --- engine/CMakeLists.txt | 2 +- {editor => engine}/resources/fonts/Ruda-Bold.ttf | Bin .../resources/fonts/fa-regular-400.ttf | Bin {editor => engine}/resources/fonts/fa-solid-900.ttf | Bin {editor => engine}/resources/imgui.ini | 0 {editor => engine}/resources/shaders/fragment.glsl | 0 {editor => engine}/resources/shaders/vertex.glsl | 0 7 files changed, 1 insertion(+), 1 deletion(-) rename {editor => engine}/resources/fonts/Ruda-Bold.ttf (100%) rename {editor => engine}/resources/fonts/fa-regular-400.ttf (100%) rename {editor => engine}/resources/fonts/fa-solid-900.ttf (100%) rename {editor => engine}/resources/imgui.ini (100%) rename {editor => engine}/resources/shaders/fragment.glsl (100%) rename {editor => engine}/resources/shaders/vertex.glsl (100%) diff --git a/engine/CMakeLists.txt b/engine/CMakeLists.txt index 389d57a..7ac7334 100644 --- a/engine/CMakeLists.txt +++ b/engine/CMakeLists.txt @@ -28,7 +28,7 @@ add_library(${PROJECT_NAME}) if(CMAKE_BUILD_TYPE STREQUAL "Release") target_compile_definitions(${PROJECT_NAME} PUBLIC RESOURCES_PATH="./resources/") else() - target_compile_definitions(${PROJECT_NAME} PUBLIC RESOURCES_PATH="${CMAKE_SOURCE_DIR}/editor/resources/") + target_compile_definitions(${PROJECT_NAME} PUBLIC RESOURCES_PATH="${CMAKE_SOURCE_DIR}/engine/resources/") endif() # Link sources, include directories, and third party libraries diff --git a/editor/resources/fonts/Ruda-Bold.ttf b/engine/resources/fonts/Ruda-Bold.ttf similarity index 100% rename from editor/resources/fonts/Ruda-Bold.ttf rename to engine/resources/fonts/Ruda-Bold.ttf diff --git a/editor/resources/fonts/fa-regular-400.ttf b/engine/resources/fonts/fa-regular-400.ttf similarity index 100% rename from editor/resources/fonts/fa-regular-400.ttf rename to engine/resources/fonts/fa-regular-400.ttf diff --git a/editor/resources/fonts/fa-solid-900.ttf b/engine/resources/fonts/fa-solid-900.ttf similarity index 100% rename from editor/resources/fonts/fa-solid-900.ttf rename to engine/resources/fonts/fa-solid-900.ttf diff --git a/editor/resources/imgui.ini b/engine/resources/imgui.ini similarity index 100% rename from editor/resources/imgui.ini rename to engine/resources/imgui.ini diff --git a/editor/resources/shaders/fragment.glsl b/engine/resources/shaders/fragment.glsl similarity index 100% rename from editor/resources/shaders/fragment.glsl rename to engine/resources/shaders/fragment.glsl diff --git a/editor/resources/shaders/vertex.glsl b/engine/resources/shaders/vertex.glsl similarity index 100% rename from editor/resources/shaders/vertex.glsl rename to engine/resources/shaders/vertex.glsl