Initial commit.
This commit is contained in:
commit
f215bc3742
43 changed files with 2983 additions and 0 deletions
15
Client/glfw3webgpu/CMakeLists.txt
Normal file
15
Client/glfw3webgpu/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# This is only meant to be included as a subdirectory in another project.
|
||||
# It assumes that targets 'glfw' and 'webgpu' exist.
|
||||
# Look at examples/CMakeLists.txt to see how to use it in a project.
|
||||
|
||||
# The glfw3webgpu target
|
||||
add_library(glfw3webgpu STATIC glfw3webgpu.c)
|
||||
target_include_directories(glfw3webgpu PUBLIC .)
|
||||
target_link_libraries(glfw3webgpu PUBLIC glfw webgpu)
|
||||
|
||||
# Copy compile definitions that are PRIVATE in glfw
|
||||
if (GLFW_BUILD_COCOA)
|
||||
target_compile_definitions(glfw3webgpu PRIVATE _GLFW_COCOA)
|
||||
target_compile_options(glfw3webgpu PRIVATE -x objective-c)
|
||||
target_link_libraries(glfw3webgpu PRIVATE "-framework Cocoa" "-framework CoreVideo" "-framework IOKit" "-framework QuartzCore")
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue