use glfw3 target export feature

This commit is contained in:
Lauchmelder 2022-02-28 17:34:43 +01:00
parent 2508fb39ee
commit 7ffef5851d
No known key found for this signature in database
GPG key ID: C2403C69D78F011D
2 changed files with 1 additions and 7 deletions

View file

@ -8,9 +8,6 @@ project ("NES Emulator")
find_package(glfw3)
if(NOT ${GLFW3_FOUND})
add_subdirectory("vendor/glfw")
set(GLFW3_INCLUDE_DIRS glfw)
set(GLFW3_LIBRARIES glfw)
endif()
add_subdirectory("vendor/glad")
add_subdirectory("vendor/spdlog")

View file

@ -20,9 +20,6 @@ target_include_directories(nesemu PRIVATE
gfx
debugger
${IMGUI_INCLUDE}
${GLFW3_INCLUDE_DIRS}
spdlog
glad
)
target_sources(nesemu PRIVATE
@ -31,7 +28,7 @@ target_sources(nesemu PRIVATE
target_link_libraries(nesemu
spdlog
${GLFW3_LIBRARIES}
glfw
glad
)