devendor glfw3
This commit is contained in:
parent
e9c27889cf
commit
9f4cf7689b
|
@ -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")
|
||||
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue