Skip to content

Commit

Permalink
chore: remove src/ from include path
Browse files Browse the repository at this point in the history
  • Loading branch information
luishfonseca committed Sep 27, 2023
1 parent 8ffbcf6 commit ee1a535
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ set(CUBOS_CORE_SOURCE
# Create core library

add_library(cubos-core ${CUBOS_CORE_SOURCE})
target_include_directories(cubos-core PUBLIC "include" PRIVATE "src")
target_include_directories(cubos-core PUBLIC "include")
target_compile_definitions(cubos-core PUBLIC
-DCUBOS_CORE_ECS_MAX_COMPONENTS=${CUBOS_CORE_ECS_MAX_COMPONENTS}
-DCUBOS_CORE_DISPATCHER_MAX_CONDITIONS=${CUBOS_CORE_DISPATCHER_MAX_CONDITIONS}
Expand Down
2 changes: 1 addition & 1 deletion core/src/cubos/core/al/audio_device.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <cubos/core/al/oal_audio_device.hpp>
#include "oal_audio_device.hpp"

using namespace cubos::core::al;

Expand Down
3 changes: 2 additions & 1 deletion core/src/cubos/core/al/oal_audio_device.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <cubos/core/al/oal_audio_device.hpp>
#include "oal_audio_device.hpp"

#include <cubos/core/log.hpp>

#ifdef WITH_OPENAL
Expand Down
3 changes: 2 additions & 1 deletion core/src/cubos/core/gl/ogl_render_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@

#include <glad/glad.h>

#include <cubos/core/gl/ogl_render_device.hpp>
#include <cubos/core/log.hpp>

#include "ogl_render_device.hpp"

using namespace cubos::core;
using namespace cubos::core::gl;

Expand Down
6 changes: 4 additions & 2 deletions core/src/cubos/core/io/glfw_window.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#include "glfw_window.hpp"

#include <glad/glad.h>

#include <cubos/core/gl/ogl_render_device.hpp>
#include <cubos/core/io/glfw_window.hpp>
#include <cubos/core/log.hpp>

#include "../gl/ogl_render_device.hpp"

using namespace cubos::core;
using namespace cubos::core::io;

Expand Down
2 changes: 1 addition & 1 deletion core/src/cubos/core/io/glfw_window.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>

#include <cubos/core/gl/ogl_render_device.hpp>
#include "../gl/ogl_render_device.hpp"
#endif

#include <cubos/core/io/window.hpp>
Expand Down
3 changes: 2 additions & 1 deletion core/src/cubos/core/io/window.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <cubos/core/io/glfw_window.hpp>
#include <cubos/core/io/window.hpp>

#include "glfw_window.hpp"

using namespace cubos::core::io;

Window cubos::core::io::openWindow(const std::string& title, const glm::ivec2& size)
Expand Down
2 changes: 1 addition & 1 deletion engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ set(CUBOS_ENGINE_SOURCE

# Create cubos engine
add_library(cubos-engine ${CUBOS_ENGINE_SOURCE})
target_include_directories(cubos-engine PUBLIC "include" PRIVATE "src")
target_include_directories(cubos-engine PUBLIC "include")
target_link_libraries(cubos-engine PUBLIC cubos-core)
cubos_common_target_options(cubos-engine)

Expand Down

0 comments on commit ee1a535

Please sign in to comment.