devendor glfw3

This commit is contained in:
Lauchmelder 2022-02-28 16:32:55 +01:00
parent e9c27889cf
commit 9f4cf7689b
No known key found for this signature in database
GPG key ID: C2403C69D78F011D
2 changed files with 14 additions and 3 deletions

View file

@ -5,7 +5,13 @@ cmake_minimum_required (VERSION 3.8)
project ("NES Emulator")
add_subdirectory("vendor/glfw")
find_package(GLFW3)
if(NOT ${GLFW3_FOUND})
add_subdirectory("vendor/glfw")
set(GLFW3_INCLUDE_DIRS "")
set(GLFW3_LIBRARIES glfw)
endif()
add_subdirectory("vendor/glad")
add_subdirectory("vendor/spdlog")