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:
parent
211f190a8f
commit
5c13974324
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user