Skip to content

Commit

Permalink
examples: Improve glfw build integration. (#360)
Browse files Browse the repository at this point in the history
Use the `glfw` target from cmake to configure other build targets.
  • Loading branch information
waywardmonkeys authored Jan 27, 2024
1 parent a9ff12d commit 67c2f15
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ add_subdirectory(triangle)

set(GLFW_BUILD_DOCS OFF)
set(GLFW_USE_WAYLAND ON)
set(DEP_GLFW_DIR ${CMAKE_SOURCE_DIR}/vendor/glfw)
add_subdirectory(${DEP_GLFW_DIR})
add_subdirectory(vendor/glfw)
1 change: 0 additions & 1 deletion examples/texture_arrays/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ endif()

include_directories(${CMAKE_SOURCE_DIR}/../ffi)
include_directories(${CMAKE_SOURCE_DIR}/framework)
include_directories(${DEP_GLFW_DIR}/include)

if (WIN32)
add_definitions(-DWGPU_TARGET_WINDOWS)
Expand Down
1 change: 0 additions & 1 deletion examples/triangle/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ endif()

include_directories(${CMAKE_SOURCE_DIR}/../ffi)
include_directories(${CMAKE_SOURCE_DIR}/framework)
include_directories(${DEP_GLFW_DIR}/include)

if (WIN32)
add_definitions(-DWGPU_TARGET_WINDOWS)
Expand Down

0 comments on commit 67c2f15

Please sign in to comment.