From d8b46657425c6b806584d10fa50b11d49ba03850 Mon Sep 17 00:00:00 2001 From: 0scar Date: Mon, 5 Feb 2024 08:03:01 +0100 Subject: Add GLAD --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 47625f3..5aa7ba1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,11 +80,12 @@ string(TOLOWER "${CMAKE_BUILD_TYPE}" ENGINE_BUILD_TYPE) ## Packages find_package(glfw3 3.3 REQUIRED) -find_package(GLEW 2.2 REQUIRED) +find_package(OpenGL REQUIRED) FetchContent_Declare(cglm GIT_REPOSITORY https://github.com/recp/cglm.git GIT_TAG v0.9.2 ) + FetchContent_MakeAvailable(cglm) ## Compilation information @@ -114,12 +115,12 @@ add_library(daw ${ENGINE_SOURCES}) target_include_directories(daw PUBLIC - include ${CMAKE_BINARY_DIR}/include ${ENGINE_INCLUDE}) + include extern/glad/include ${CMAKE_BINARY_DIR}/include ${ENGINE_INCLUDE}) target_link_libraries(${PROJECT_NAME} SDL2 SDL2_image SDL2_ttf glfw - GLEW + OpenGL::GL cglm $<$>:m> $<$:dl> -- cgit v1.3