gles-compatibility-layer/CMakeLists.txt

20 lines
770 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
option(GLES_COMPATIBILITY_LAYER_USE_DEFAULT_INCLUDE_PATH "Use Default Include Path" TRUE)
if(GLES_COMPATIBILITY_LAYER_USE_DEFAULT_INCLUDE_PATH)
target_include_directories(gles-compatibility-layer PUBLIC include)
endif()
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)