1
0

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)

This commit is contained in:
Niklas Birk 2022-05-21 18:13:32 +02:00
parent 211f190a8f
commit 5c13974324

View File

@ -27,15 +27,11 @@ find_package(Vulkan REQUIRED)
target_include_directories(${PROJECT_NAME} PUBLIC ${Vulkan_INCLUDE_DIRS}) target_include_directories(${PROJECT_NAME} PUBLIC ${Vulkan_INCLUDE_DIRS})
# glad # glad
set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL REQUIRED) find_package(OpenGL REQUIRED)
include_directories(./glad/include) include_directories(./glad/include)
# GLFW # Linking
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)
target_link_libraries(Informatikprojekt OpenGL::GL glfw) target_link_libraries(Informatikprojekt OpenGL::GL glfw)
target_link_libraries(Informatikprojekt_OpenGL OpenGL::GL glfw) target_link_libraries(Informatikprojekt_OpenGL OpenGL::GL glfw)
target_link_libraries(Informatikprojekt_Vulkan Vulkan::Vulkan glfw) target_link_libraries(Informatikprojekt_Vulkan Vulkan::Vulkan glfw)