use glfw3 target export feature
This commit is contained in:
parent
2508fb39ee
commit
7ffef5851d
|
@ -8,9 +8,6 @@ project ("NES Emulator")
|
||||||
find_package(glfw3)
|
find_package(glfw3)
|
||||||
if(NOT ${GLFW3_FOUND})
|
if(NOT ${GLFW3_FOUND})
|
||||||
add_subdirectory("vendor/glfw")
|
add_subdirectory("vendor/glfw")
|
||||||
|
|
||||||
set(GLFW3_INCLUDE_DIRS glfw)
|
|
||||||
set(GLFW3_LIBRARIES glfw)
|
|
||||||
endif()
|
endif()
|
||||||
add_subdirectory("vendor/glad")
|
add_subdirectory("vendor/glad")
|
||||||
add_subdirectory("vendor/spdlog")
|
add_subdirectory("vendor/spdlog")
|
||||||
|
|
|
@ -20,9 +20,6 @@ target_include_directories(nesemu PRIVATE
|
||||||
gfx
|
gfx
|
||||||
debugger
|
debugger
|
||||||
${IMGUI_INCLUDE}
|
${IMGUI_INCLUDE}
|
||||||
${GLFW3_INCLUDE_DIRS}
|
|
||||||
spdlog
|
|
||||||
glad
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_sources(nesemu PRIVATE
|
target_sources(nesemu PRIVATE
|
||||||
|
@ -31,7 +28,7 @@ target_sources(nesemu PRIVATE
|
||||||
|
|
||||||
target_link_libraries(nesemu
|
target_link_libraries(nesemu
|
||||||
spdlog
|
spdlog
|
||||||
${GLFW3_LIBRARIES}
|
glfw
|
||||||
glad
|
glad
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue