diff --git a/TestApp/CMakeLists.txt b/TestApp/CMakeLists.txt index bb6e9a7..2daaf6c 100644 --- a/TestApp/CMakeLists.txt +++ b/TestApp/CMakeLists.txt @@ -43,4 +43,7 @@ build_demos( LINK_LIBRARIES engine3d -) \ No newline at end of file +) + +target_include_directories(${PROJECT_NAME} PUBLIC ./) +target_include_directories(${PROJECT_NAME} PRIVATE ../) \ No newline at end of file diff --git a/TestApp/Scenes/Assets/Components/Bodies/BodyContainer.hpp b/TestApp/Scenes/Assets/Components/Bodies/BodyContainer.hpp index 2fcd601..8b13b3e 100644 --- a/TestApp/Scenes/Assets/Components/Bodies/BodyContainer.hpp +++ b/TestApp/Scenes/Assets/Components/Bodies/BodyContainer.hpp @@ -1,3 +1,4 @@ +// #include #include // Jolt Includes class BodyContainer diff --git a/TestApp/src/Scenes/Assets/Components/Graphics/SpriteRender3D.cpp b/TestApp/src/Scenes/Assets/Components/Graphics/SpriteRender3D.cpp index dea4607..e665a1d 100644 --- a/TestApp/src/Scenes/Assets/Components/Graphics/SpriteRender3D.cpp +++ b/TestApp/src/Scenes/Assets/Components/Graphics/SpriteRender3D.cpp @@ -1,7 +1,7 @@ #include -// #include "Scene" - +#include using namespace engine3d; + const int Radius = 1; const int SectorCount = 10; const int StackCount = 10; diff --git a/TestApp/src/Scenes/Assets/Components/Physics/PhysicsBody3D.cpp b/TestApp/src/Scenes/Assets/Components/Physics/PhysicsBody3D.cpp index ce97f59..68c8438 100644 --- a/TestApp/src/Scenes/Assets/Components/Physics/PhysicsBody3D.cpp +++ b/TestApp/src/Scenes/Assets/Components/Physics/PhysicsBody3D.cpp @@ -1,7 +1,9 @@ +// #include #include #include #include #include +#include using namespace engine3d; PhysicsBody3D::PhysicsBody3D(BodyContainer * p_bodyCon) diff --git a/TestApp/src/Scenes/Assets/Components/testComp.cpp b/TestApp/src/Scenes/Assets/Components/testComp.cpp index 91a6bc4..0b47ec7 100644 --- a/TestApp/src/Scenes/Assets/Components/testComp.cpp +++ b/TestApp/src/Scenes/Assets/Components/testComp.cpp @@ -8,7 +8,7 @@ #include #include #include -// #include "Scene" +#include using namespace engine3d; void testComp::OnIntegrate() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8c3377c..2fdd892 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -8,8 +8,8 @@ set(VULKAN_SHADERS_INCLUDE_DIR ${VULKAN_INCLUDE_DIR}/Shaders) set(VULKAN_SHADERS_SRC_DIR ${VULKAN_SRC_DIR}/Shaders) -build_library( - SOURCES +add_library( + ${PROJECT_NAME} ${ENGINE_SRC_DIR}/Core/ApplicationInstance.cpp ${ENGINE_INCLUDE_NAME}/Core/EngineLogger.hpp diff --git a/src/engine3d/Core/SceneManagment/Components/GameComponent.cpp b/src/engine3d/Core/SceneManagment/Components/GameComponent.cpp index de501d3..fb4724f 100644 --- a/src/engine3d/Core/SceneManagment/Components/GameComponent.cpp +++ b/src/engine3d/Core/SceneManagment/Components/GameComponent.cpp @@ -1,4 +1,5 @@ #include +#include namespace engine3d {