File: CMakeLists.txt

package info (click to toggle)
embree 3.12.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,412 kB
  • sloc: cpp: 173,822; xml: 3,737; ansic: 2,955; python: 1,628; sh: 480; makefile: 193; csh: 42
file content (26 lines) | stat: -rw-r--r-- 1,342 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Copyright 2009-2020 Intel Corporation
## SPDX-License-Identifier: Apache-2.0

INCLUDE(tutorial)
ADD_TUTORIAL(next_hit)

MACRO (ALL_HITS_TEST name model max_next_hits)
  ADD_TEST(NAME next_hit_${name}_${max_next_hits} COMMAND next_hit -c ${EMBREE_MODEL_DIR}/${model} -c ${EMBREE_MODEL_DIR}/${model} --verify --max_next_hits ${max_next_hits} --max_total_hits 1024 ${ARGN} --shader default -o test.tga)
ENDMACRO ()

IF (BUILD_TESTING AND EMBREE_TESTING_INTENSITY GREATER 1)
  IF (CMAKE_SIZEOF_VOID_P EQUAL 8) # FIXME: these cause out of memory under Win32
    ALL_HITS_TEST(triangle_robust_crown crown/crown.ecs 1)
    ALL_HITS_TEST(triangle_robust_crown crown/crown.ecs 2)
    ALL_HITS_TEST(triangle_robust_crown crown/crown.ecs 3)
    ALL_HITS_TEST(triangle_robust_crown crown/crown.ecs 4)
    ALL_HITS_TEST(quads_robust_crown crown/crown.ecs 1 --convert-triangles-to-quads)
    ALL_HITS_TEST(grids_robust_crown crown/crown.ecs 1 --convert-triangles-to-grids)
  ENDIF()
  ALL_HITS_TEST(flat_curve_robust_tighten tighten/tighten.ecs 1)
  ALL_HITS_TEST(flat_curve_robust curves/hair0.ecs 1)
#  ALL_HITS_TEST(round_curve_robust curves/hair0.ecs 1 --convert-flat-to-round-curves)
  ALL_HITS_TEST(oriented_curve_robust curves/oriented_curve0.ecs 1)
  ALL_HITS_TEST(flat_linear_curve_robust curves/hair0.ecs 1 --convert-bezier-to-lines)
ENDIF()