Skip to content

Commit a258c42

Browse files
author
0xMemoryGrinder
committed
fix: incorrect include paths
1 parent 83e3f3d commit a258c42

File tree

11 files changed

+24
-24
lines changed

11 files changed

+24
-24
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
3535
add_library(${PROJECT_NAME} SHARED ${SCRIPTS_SRC} ${SCRIPTS_ICL} ${FACTORY_SRC} ${FACTORY_ICL} ${CORE_SRC} ${CORE_ICL} ${EXPORTS})
3636
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES PREFIX "")
3737
target_include_directories(${PROJECT_NAME} PRIVATE
38-
Scripts/include
39-
Factory/include
40-
Core/include
38+
scripts/include
39+
factory/include
40+
core/include
4141
)
4242
target_include_directories(${PROJECT_NAME} PUBLIC
43-
IncludeExport
43+
includeExport
4444
)
4545

4646
target_link_libraries(${PROJECT_NAME} PolymorphEngine)

cmake/CopyConfig.cmake

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ if (NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
55
set(POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH ${CMAKE_SOURCE_DIR})
66
endif()
77

8-
# creating a Plugins folder if not created already
9-
if (NOT EXISTS "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/Plugins/")
10-
file(MAKE_DIRECTORY "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/Plugins/")
8+
# creating a plugins folder if not created already
9+
if (NOT EXISTS "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/plugins/")
10+
file(MAKE_DIRECTORY "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/plugins/")
1111
endif()
12-
12+
1313
# copying the plugin files to the project
14-
if (NOT EXISTS "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/Plugins/${PROJECT_NAME}")
15-
file(MAKE_DIRECTORY "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/Plugins/${PROJECT_NAME}/")
16-
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/Assets" DESTINATION "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/Plugins/${PROJECT_NAME}")
17-
file(COPY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pcf.plugin" "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/Plugins/${PROJECT_NAME}/${PROJECT_NAME}.pcf.plugin")
18-
file(COPY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md" "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/Plugins/${PROJECT_NAME}/README.md")
19-
endif()
14+
if (NOT EXISTS "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/plugins/${PROJECT_NAME}")
15+
file(MAKE_DIRECTORY "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/plugins/${PROJECT_NAME}/")
16+
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/Assets" DESTINATION "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/plugins/${PROJECT_NAME}")
17+
file(COPY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pcf.plugin" "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/plugins/${PROJECT_NAME}/${PROJECT_NAME}.pcf.plugin")
18+
file(COPY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md" "${POLYMORPH_ENGINE_PLUGINS_CONFIG_PATH}/plugins/${PROJECT_NAME}/README.md")
19+
endif()
2020

2121
# creating main plugin config files
2222
# if not inside a project using the plugin but rather the plugin project itself

core/include/PluginCore.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

3-
#include <polymorph/api/plugin/APlugin.hpp>
4-
#include <polymorph/config/XmlComponent.hpp>
3+
#include "polymorph/engine/api/plugin/APlugin.hpp"
4+
#include "polymorph/engine/config/XmlComponent.hpp"
55

66
namespace polymorph::engine::api
77
{

core/src/PluginCore.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#include "../include/PluginCore.hpp"
2-
#include "../../factory/include/ComponentFactory.hpp"
3-
#include "../../factory/include/SerializableObjectFactory.hpp"
4-
#include <polymorph/api/plugin/Symbols.hpp>
1+
#include "PluginCore.hpp"
2+
#include "ComponentFactory.hpp"
3+
#include "SerializableObjectFactory.hpp"
4+
#include "polymorph/engine/api/plugin/Symbols.hpp"
55

66
namespace polymorph::engine::api
77
{

factory/include/ComponentFactory.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#pragma once
99

1010
#include <unordered_map>
11-
#include <polymorph/api/scripting/AComponentFactory.hpp>
11+
#include "polymorph/engine/api/scripting/AComponentFactory.hpp"
1212

1313
namespace polymorph::engine::api
1414
{

factory/include/SerializableObjectFactory.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#pragma once
1010

1111
#include <unordered_map>
12-
#include "polymorph/api/scripting/ASerializableObjectFactory.hpp"
12+
#include "polymorph/engine/api/scripting/ASerializableObjectFactory.hpp"
1313

1414
namespace polymorph::engine::api
1515
{

factory/src/ComponentFactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
** ComponentFactory.cpp
66
*/
77

8-
#include "../include/ComponentFactory.hpp"
8+
#include "ComponentFactory.hpp"
99

1010
polymorph::engine::api::ComponentFactory::ComponentFactory() : AComponentFactory()
1111
{

factory/src/SerializableObjectFactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
** SerializableObjectFactory.cpp
66
*/
77

8-
#include "../include/SerializableObjectFactory.hpp"
8+
#include "SerializableObjectFactory.hpp"
99

1010
polymorph::engine::api::SerializableObjectFactory::SerializableObjectFactory()
1111
: ASerializableObjectFactory()

includeExport/polymorph/engine/plugin-name/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)