box3d/samples/gfx/CMakeLists.txt
Erin Catto c37cfe4cd7
SIMD hull collision (#93)
SIMD based hull collision inspired by example code from @cairnc in #54 

<img width="1676" height="1332" alt="image"
src="https://github.com/user-attachments/assets/58b137bd-bf7b-4c99-863c-64341b973a3d"
/>

- Fixed #78
- Fixed #85 and fixed CI to error on UB.
- Updated benchmarks
- Added AMD scalar benchmarks
- Added Neon benchmarks
- More determinism unit tests
- Sample leak detection
- Added b3Body_AllowFastRotation
- Added b3Body_IsFastRotationAllowed
- Bumped b3HullData version
- Bumped b3CompoundData version
2026-07-18 22:43:03 -07:00

67 lines
1.2 KiB
CMake

set(GFX_FILES
arena.c
arena.h
debug_adapter.c
debug_adapter.h
debug_shapes.c
debug_shapes.h
draw_overlay.h
draw.c
draw.h
edges.c
edges.h
geometry_registry.c
geometry_registry.h
gtao.c
gtao.h
highlight_mask.c
highlight_mask.h
highlight_outline.c
highlight_outline.h
highlight_target.c
highlight_target.h
ibl.c
ibl.h
overlay.c
overlay.h
projection.h
qsort.h
renderer.c
renderer.h
scene_target.c
scene_target.h
shadow.c
shadow.h
sky.c
sky.h
sokol_impl.c
text.c
text.h
tone_map.c
tone_map.h
utility.h
)
add_library(gfx STATIC ${GFX_FILES})
set_target_properties(gfx PROPERTIES
C_STANDARD 17
C_STANDARD_REQUIRED YES
C_EXTENSIONS YES
)
if(APPLE)
set_source_files_properties(
sokol_impl.c
PROPERTIES LANGUAGE OBJC)
target_compile_options(gfx PRIVATE -fobjc-arc)
endif()
# Include root is the samples dir so "gfx/foo.h" / "host/foo.h" prefixes resolve.
target_include_directories(gfx PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..")
target_link_libraries(gfx
PUBLIC sokol box3d
PRIVATE shader_gen
)
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${GFX_FILES})