From 3078b267561053af3b590407ef60f8b4beae18bd Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sat, 5 Aug 2023 17:21:17 -0400 Subject: [PATCH] Allow Using Custom Include Path --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c3b9b5d..52b36ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)