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")

View file

@ -9,13 +9,18 @@ add_executable(nesemu
"PPU.cpp"
"gfx/Window.cpp"
"debugger/CPUWatcher.cpp"
"debugger/Debugger.cpp" "debugger/PPUWatcher.cpp" "debugger/Disassembler.cpp" "debugger/MemoryViewer.cpp" "debugger/NametableViewer.cpp")
"debugger/Debugger.cpp"
"debugger/PPUWatcher.cpp"
"debugger/Disassembler.cpp"
"debugger/MemoryViewer.cpp"
"debugger/NametableViewer.cpp")
target_include_directories(nesemu PRIVATE
mappers
gfx
debugger
${IMGUI_INCLUDE}
${GLFW3_INCLUDE_DIRS}
)
target_sources(nesemu PRIVATE
@ -24,7 +29,7 @@ target_sources(nesemu PRIVATE
target_link_libraries(nesemu
spdlog
glfw
${GLFW3_LIBRARIES}
glad
)