[Fix] (MG_Test): Fix compiling error.

This commit is contained in:
BZLZHH
2025-08-10 23:34:15 +08:00
parent fefccf808a
commit 1ca0a96628
4 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ set(SOURCE_FILES
MobileGL/MG_State/GLState/TextureState/TextureObject.cpp
MobileGL/MG_State/GLState/TextureState/TextureUnit.cpp
MobileGL/MG_State/GLState/TextureState/TextureState.cpp
)
)
add_library(${CMAKE_PROJECT_NAME} SHARED
${SOURCE_FILES}
@@ -8,7 +8,6 @@
namespace MobileGL {
namespace MG_State {
namespace GLState {
class TextureState {
public:
static constexpr int MAX_TEXTURE_IMAGE_UNITS = 32;
@@ -32,4 +31,4 @@ namespace MobileGL {
};
} // namespace GLState
} // namespace MG_State
} // namespace MobileGL
} // namespace MobileGL
+4 -1
View File
@@ -9,6 +9,9 @@ add_executable(
${MGL_ROOT}/MobileGL/MG_State/GLState/BufferState/BufferObject.cpp
${MGL_ROOT}/MobileGL/MG_State/GLState/VertexArrayState/VertexArrayObject.cpp
${MGL_ROOT}/MobileGL/MG_State/GLState/VertexArrayState/VertexArrayState.cpp
${MGL_ROOT}/MobileGL/MG_State/GLState/TextureState/TextureObject.cpp
${MGL_ROOT}/MobileGL/MG_State/GLState/TextureState/TextureUnit.cpp
${MGL_ROOT}/MobileGL/MG_State/GLState/TextureState/TextureState.cpp
${MGL_ROOT}/MobileGL/MG_State/GLState/ErrorState/Error.cpp
${MGL_ROOT}/MobileGL/MG_Impl/GLImpl/Buffer/GL_Buffer.cpp
${MGL_ROOT}/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp
@@ -40,4 +43,4 @@ target_link_libraries(
)
include(GoogleTest)
gtest_discover_tests(BufferTest)
gtest_discover_tests(BufferTest)
+4 -1
View File
@@ -9,6 +9,9 @@ add_executable(
${MGL_ROOT}/MobileGL/MG_State/GLState/BufferState/BufferObject.cpp
${MGL_ROOT}/MobileGL/MG_State/GLState/VertexArrayState/VertexArrayObject.cpp
${MGL_ROOT}/MobileGL/MG_State/GLState/VertexArrayState/VertexArrayState.cpp
${MGL_ROOT}/MobileGL/MG_State/GLState/TextureState/TextureObject.cpp
${MGL_ROOT}/MobileGL/MG_State/GLState/TextureState/TextureUnit.cpp
${MGL_ROOT}/MobileGL/MG_State/GLState/TextureState/TextureState.cpp
${MGL_ROOT}/MobileGL/MG_State/GLState/ErrorState/Error.cpp
${MGL_ROOT}/MobileGL/MG_Impl/GLImpl/Buffer/GL_Buffer.cpp
${MGL_ROOT}/MobileGL/MG_Impl/GLImpl/Getter/GL_Getter.cpp
@@ -40,4 +43,4 @@ target_link_libraries(
)
include(GoogleTest)
gtest_discover_tests(VertexArrayTest)
gtest_discover_tests(VertexArrayTest)