mirror of
https://github.com/glfw/glfw.git
synced 2025-12-20 14:11:55 +00:00
Compare commits
1 Commits
e70f7f39bd
...
7cfe62502f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7cfe62502f |
@ -98,8 +98,20 @@ else () # macOS
|
|||||||
URL ${WEBGPU_URL}
|
URL ${WEBGPU_URL}
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(webgpu_other_bins)
|
FetchContent_MakeAvailable(webgpu_other_bins)
|
||||||
|
|
||||||
|
add_library(webgpu_other STATIC IMPORTED GLOBAL)
|
||||||
set(WEBGPU_RUNTIME_LIB_OTHER "${webgpu_other_bins_SOURCE_DIR}/lib/${WEBGPU_LIBNAME}")
|
set(WEBGPU_RUNTIME_LIB_OTHER "${webgpu_other_bins_SOURCE_DIR}/lib/${WEBGPU_LIBNAME}")
|
||||||
execute_process(COMMAND lipo -create ${WEBGPU_RUNTIME_LIB} ${WEBGPU_RUNTIME_LIB_OTHER} -output ${WEBGPU_RUNTIME_LIB})
|
set_target_properties(webgpu_other PROPERTIES
|
||||||
|
IMPORTED_LOCATION "${WEBGPU_RUNTIME_LIB_OTHER}"
|
||||||
|
)
|
||||||
|
target_include_directories(webgpu_other INTERFACE
|
||||||
|
"${webgpu_other_bins_SOURCE_DIR}/include"
|
||||||
|
"${webgpu_other_bins_SOURCE_DIR}/include/webgpu"
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(webgpu INTERFACE
|
||||||
|
webgpu_other
|
||||||
|
)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
add_executable(boing WIN32 MACOSX_BUNDLE boing.c ${ICON} ${GLAD_GL})
|
add_executable(boing WIN32 MACOSX_BUNDLE boing.c ${ICON} ${GLAD_GL})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user