Allow Using Custom Include Path

This commit is contained in:
TheBrokenRail 2023-08-05 17:21:17 -04:00
parent c6f1947c1b
commit 3078b26756

View File

@ -4,7 +4,12 @@ project(gles-compatibility-layer)
# Build
add_library(gles-compatibility-layer STATIC src/state.c src/passthrough.c src/matrix.c src/draw.c)
target_link_libraries(gles-compatibility-layer m)
target_include_directories(gles-compatibility-layer PUBLIC include)
# 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()
# Shaders
include(cmake/util.cmake)