[Test] (BufferTest): add Binding test, and fix compile errors

This commit is contained in:
2025-07-17 22:15:31 +08:00
parent 6de362cd1c
commit 5c1b0a8f10
6 changed files with 82 additions and 5 deletions
+7 -2
View File
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.14)
project(MobileGLTest)
# GoogleTest requires at least C++17
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FetchContent)
@@ -15,6 +15,9 @@ set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
enable_testing()
set(MGL_ROOT ${CMAKE_CURRENT_LIST_DIR}/../..)
add_executable(
SanityTest
SanityTest.cpp
@@ -25,4 +28,6 @@ target_link_libraries(
)
include(GoogleTest)
gtest_discover_tests(SanityTest)
gtest_discover_tests(SanityTest)
add_subdirectory(Buffer)