From e8032b8cf2f2d1fea5f812f198df9b30c530d709 Mon Sep 17 00:00:00 2001 From: redstrate <54911369+redstrate@users.noreply.github.com> Date: Tue, 16 Feb 2021 17:09:54 -0500 Subject: [PATCH] Move platform headers into their own interface target --- engine/CMakeLists.txt | 1 + engine/core/CMakeLists.txt | 3 +-- engine/{core => platform}/include/file.hpp | 0 engine/{core => platform}/include/platform.hpp | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename engine/{core => platform}/include/file.hpp (100%) rename engine/{core => platform}/include/platform.hpp (100%) diff --git a/engine/CMakeLists.txt b/engine/CMakeLists.txt index 9d717d2..4c43a39 100755 --- a/engine/CMakeLists.txt +++ b/engine/CMakeLists.txt @@ -8,6 +8,7 @@ add_subdirectory(math) add_subdirectory(log) add_subdirectory(asset) add_subdirectory(shadercompiler) +add_subdirectory(platform) if(NOT ENABLE_IOS AND NOT ENABLE_TVOS) add_subdirectory(audio) diff --git a/engine/core/CMakeLists.txt b/engine/core/CMakeLists.txt index 6f19fa7..8e947c2 100755 --- a/engine/core/CMakeLists.txt +++ b/engine/core/CMakeLists.txt @@ -11,8 +11,6 @@ set(SRC include/object.hpp include/debug.hpp include/components.hpp - include/platform.hpp - include/file.hpp include/imgui_utility.hpp include/console.hpp @@ -46,6 +44,7 @@ target_link_libraries(Core PUBLIC Renderer magic_enum imgui + Platform ${EXTRA_LIBRARIES} BulletDynamics BulletCollision diff --git a/engine/core/include/file.hpp b/engine/platform/include/file.hpp similarity index 100% rename from engine/core/include/file.hpp rename to engine/platform/include/file.hpp diff --git a/engine/core/include/platform.hpp b/engine/platform/include/platform.hpp similarity index 100% rename from engine/core/include/platform.hpp rename to engine/platform/include/platform.hpp