- follow cam in replay viewer - world text with halo - fixed sensor crash - sensor visitors must now be convex
71 lines
1.3 KiB
CMake
71 lines
1.3 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
|
|
fonts.c
|
|
fonts.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
|
|
world_text.c
|
|
world_text.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})
|