# MobileGL - MobileGL/MG_Test/Texture/CMakeLists.txt
# Copyright (c) 2025-2026 MobileGL-Dev
# Licensed under the GNU Lesser General Public License v3.0:
#   https://www.gnu.org/licenses/gpl-3.0.txt
#   https://www.gnu.org/licenses/lgpl-3.0.txt
# SPDX-License-Identifier: LGPL-3.0-only
# End of Source File Header

cmake_minimum_required(VERSION 3.14)

add_executable(
        TextureTest
        TextureTest.cpp
)

target_include_directories(TextureTest PRIVATE
        ${MGL_ROOT}/include
        ${MGL_ROOT}/MobileGL
)

target_link_libraries(
        TextureTest PRIVATE
        MobileGLTestMain
        ${LINK_LIBRARIES}
)

include(GoogleTest)
gtest_discover_tests(TextureTest DISCOVERY_TIMEOUT 30 PROPERTIES LABELS unit)

add_executable(
        TextureViewTest
        TextureViewTest.cpp
)

target_include_directories(TextureViewTest PRIVATE
        ${MGL_ROOT}/include
        ${MGL_ROOT}/MobileGL
)

target_link_libraries(
        TextureViewTest PRIVATE
        MobileGLTestMain
        ${LINK_LIBRARIES}
)

gtest_discover_tests(TextureViewTest DISCOVERY_TIMEOUT 30 PROPERTIES LABELS unit)

add_executable(
        TextureByNameTest
        TextureByNameTest.cpp
)

target_include_directories(TextureByNameTest PRIVATE
        ${MGL_ROOT}/include
        ${MGL_ROOT}/MobileGL
)

target_link_libraries(
        TextureByNameTest PRIVATE
        MobileGLTestMain
        ${LINK_LIBRARIES}
)

gtest_discover_tests(TextureByNameTest DISCOVERY_TIMEOUT 30 PROPERTIES LABELS unit)

