This repository has been archived on 2024-11-22. You can view files and clone it, but cannot push or open issues or pull requests.
gles-compatibility-layer/CMakeLists.txt

17 lines
614 B
CMake
Raw Normal View History

2023-08-05 01:58:43 +00:00
cmake_minimum_required(VERSION 3.16.0)
project(gles-compatibility-layer)
# Build
add_library(gles-compatibility-layer STATIC src/state.c src/passthrough.c src/matrix.c src/draw.c)
2023-08-05 02:04:52 +00:00
target_link_libraries(gles-compatibility-layer m)
2023-08-05 21:21:17 +00:00
# Include Path
2024-06-18 21:58:47 +00:00
target_include_directories(gles-compatibility-layer PUBLIC include)
2023-08-05 02:47:21 +00:00
2023-08-05 01:58:43 +00:00
# Shaders
include(cmake/util.cmake)
2024-06-18 21:31:58 +00:00
embed_resource(gles-compatibility-layer "src/shaders/main.vsh")
embed_resource(gles-compatibility-layer "src/shaders/main.fsh")
2023-08-05 02:47:21 +00:00
2023-08-05 01:58:43 +00:00
# Warnings
2024-05-27 07:43:28 +00:00
target_compile_options(gles-compatibility-layer PRIVATE -Wall -Wextra -Werror -Wpointer-arith -Wshadow -Wnull-dereference)