Skip to content

Commit 67c2f15

Browse files
examples: Improve glfw build integration. (#360)
Use the `glfw` target from cmake to configure other build targets.
1 parent a9ff12d commit 67c2f15

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

examples/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,4 @@ add_subdirectory(triangle)
3737

3838
set(GLFW_BUILD_DOCS OFF)
3939
set(GLFW_USE_WAYLAND ON)
40-
set(DEP_GLFW_DIR ${CMAKE_SOURCE_DIR}/vendor/glfw)
41-
add_subdirectory(${DEP_GLFW_DIR})
40+
add_subdirectory(vendor/glfw)

examples/texture_arrays/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ endif()
1111

1212
include_directories(${CMAKE_SOURCE_DIR}/../ffi)
1313
include_directories(${CMAKE_SOURCE_DIR}/framework)
14-
include_directories(${DEP_GLFW_DIR}/include)
1514

1615
if (WIN32)
1716
add_definitions(-DWGPU_TARGET_WINDOWS)

examples/triangle/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ endif()
1111

1212
include_directories(${CMAKE_SOURCE_DIR}/../ffi)
1313
include_directories(${CMAKE_SOURCE_DIR}/framework)
14-
include_directories(${DEP_GLFW_DIR}/include)
1514

1615
if (WIN32)
1716
add_definitions(-DWGPU_TARGET_WINDOWS)

0 commit comments

Comments
 (0)