From 5c1397432430a08e1f691fdeaa372f66e2536551 Mon Sep 17 00:00:00 2001 From: Niklas Date: Sat, 21 May 2022 18:13:32 +0200 Subject: [PATCH] remove the lines of building glfw alongside the project. make sure to install the packaged glfw version (e.g. libglfw-dev on apt if existent) --- CMakeLists.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ac43c80..e4fdaff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,15 +27,11 @@ find_package(Vulkan REQUIRED) target_include_directories(${PROJECT_NAME} PUBLIC ${Vulkan_INCLUDE_DIRS}) # glad +set(OpenGL_GL_PREFERENCE GLVND) find_package(OpenGL REQUIRED) include_directories(./glad/include) -# GLFW -set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE) -set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE) -set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) - -add_subdirectory(./glfw) +# Linking target_link_libraries(Informatikprojekt OpenGL::GL glfw) target_link_libraries(Informatikprojekt_OpenGL OpenGL::GL glfw) target_link_libraries(Informatikprojekt_Vulkan Vulkan::Vulkan glfw)